Is there a way to increase the width of the command palette in vscode - visual-studio-code

When searching for a type, ctrl-t, the width is not sufficient to read the full path for a given type. Thats why I thought it could help to increase the palette size. But I did not find a tool that allows that. Anybody, please?

I was looking for the same thing, there's a request to add it but there's a work-around if you have the Customize UI extension installed. See the issue here, specifically this part. Below is what I went with
"customizeUI.stylesheet": {
".quick-input-widget": "width: 75% !important; left: 25%;"
},

Related

Siebel Open UI Resizing Image Applet

The new Siebel Open UI, has improve visualization. I have taken a cue from the Card Applet to meet a requirement of an image applet.
I have a created a simple applet with just one field which is the image source path from the contact BC , the html type for the field is an image control and the field retrieval type is Field Data, everything works fine except that I cant resize the image to a fixed size like the card applet for example i want the image to be resized to 200px by 200px.
See Image attached within.
have tried looking for the css attribute for the image control but I could not find it, will appreciate suggestion on this solution
I'm working on a similar requirement. I used custom css in the Siebel theme, something like this:
.siebui-icon-contactfilename>img {
width: 90px;
height: 90px;
}
Doing this I could resize the image to 90x90 px:
Regards.
# Alexander has given the perfect clue , find the css properties and edit it in this case use
.mceGridField.siebui-value.mceField > span > a > img {
width: 200px;
height: 200px;
}
I believe you must have tried this.You can set height/width css atribute to resize image,
You can directly set this in html attribute of control in applet. For example,
http://www.askmesiebel.com/2014/02/siebel-fields-validation-through-html-attributes/
If this is not your answer, please explain your question.

ion-toggle : Reduce size of toggle button

Is there any way to reduce the size of ion-toggle button.
The picture depicts my problem.
try this
ion-toggle {
zoom: 0.8;
}
In case you are creating toggle button like this:
<label class="toggle">
<input type="checkbox">
<div class="track">
<div class="handle"></div>
</div>
</label>
Use .toggle .track class to adjust following css properties:
width: 51px;
height: 31px;
and then .toggle .handle to adjust following css properties:
width: 20px;
height: 20px;
border-radius: 20px;
top: 7px;
left: 7px;
You may also add your own class name to change appearance of specific toggle buttons.
In case you are using ion-toggle directive as in
<ion-toggle ng-model="airplaneMode" class="toggle-small" toggle-class="toggle-calm">Airplane Mode</ion-toggle>
You can try to see if applying class="toggle-small" changes appearance as per your need. However, above class modifications can still be applied to this directive.
From what I can tell you will need to customize three CSS definitions: .toggle-icon, .toggle-inner, and .toggle-checked .toggle-inner.
.toggle-icon: width and height change the size of the toggle "track"
.toggle-inner: width and height change the size of the toggle "button" that slides in the track
.toggle-checked .toggle-inner.: transform: translate3d(27px, 0, 0) The first arg changes the position of the button when it is pressed
The following shows how to enlarge so to answer the OP you can simply use smaller values to get a minuscule toggle.
CSS zoom suggested above appears to be outdated 2017 post in my calendar is not that old. Anyways, it does not take virtual units.
While I am constantly fighting all this non-sense of frameworks and CSS cryptic lingo I have been always trying to use virtual units even for font-size. Because they are a percentage of the real-estate a platform presents, I feel they provide better results with a single specification, occasionally I specify separately for portrait and landscape.
So for the toggle I have derived the following gathering from all your inputs and other posts. In order to have a decent appearance I tend to like things large but they still have to fit an iphone, android and my TV 1920 x 1000
I personally think it's totally stupid to keep speaking and specifying CSS with weird units like px, em, etc....
Here is the looks on an iphone
Here is the looks on my large TV
As you can see I still have some more styling to do for the radio-buttons they are tiny on my 1920 x 1080 TV. I will derive a style common for both that will work (unlike the Ionic default which DOES NOT, otherwise we won't be here, would we?).
Programmers should NOT have to do this, It's a shame frameworks make it such a pain, when they claim to do the opposite (enabling you to publish on various platform).
Thanks for #amuramoto for the translate, I am just hacking my way thru the dev tools figuring out all this terrible mess.
Here is what I cooked up for the radio-buttons I don't know why I am having to use 5.5vmin to center the .radio-icon ?? it's not looking great on the iphone yet. Perhaps someone can improve on this?
here are the radio-buttons on the 1920 x 1080 resolution

TinyMCE codesample plugin dialog height

Does anyone know how to change the height of this popup? They use javascript to set the height which is far too much on a small laptop. It's somehow possible to overwrite the styles with important declarations in the css but that feels messy. I wish there was a property that could be used in the init method of TinyMCE.
UPDATE: There are now configuration options for controlling the width and height of the dialog:
https://www.tinymce.com/docs/plugins/codesample/#codesample_dialog_width
https://www.tinymce.com/docs/plugins/codesample/#codesample_dialog_height
ORIGINAL ANSWER: There is currently no configuration option to control this ... you can certainly change this in the plugin's code. In the 4.3.12 version of TinyMCE I changed the code on lines 1103 and 1104 to this:
open: function(editor) {
editor.windowManager.open({
title: "Insert/Edit code sample",
minWidth: Math.min(DOM.getViewPort().w, 600),
minHeight: Math.min(DOM.getViewPort().h, 450),
This reduced the width and height of the editor. Of course if you update TinyMCE you would need to re-add this change but its a pretty simple update.

how to make Zurb Foundation non-responsive?

I have made a website with Foundation-master wordpress theme, it looks good but I dont like how its behaving in other browser widths. Is there a way of making it non-responsive, or fixed to a certain width?
Thanks!
Sometimes it's necessary to deactivate the responsive features. For example if, like it happened to me twice already, a website is launching non-responsive and the optimization for smartphones/tablets is added later.
Foundation is an awesome framework even if you take out the responsiveness. The SCSS files are very well structured it comes with a library of very useful UI elements. It's a great choice for responsive and non-responsive sites if you ask me. Some people might also want to streamline their workflow and not jump between different frameworks depending on the project to keep costs low.
Anyways, here my two cents. This deactivated all responsiveness for me:
.row {
width: 62.5rem;
}
And then in the _settings.scss
$small-range: (0, 90em);
$medium-range: (0, 90em);
$large-range: (0, 90em);
This way we're essentially always seeing the large version. As far as I can tell this even works for top bar etc.
Foundation was built to simply create responsive websites.
Beside of the question why you use this framework if you don't want a responsive webseite, it's only possible if you start removing all the media queries in foundation css and by removing the viewport meta tag.
Maybe you should better invest this time to make your webseite responsive so that it also fits on smaller screens and mobile devices.
Although the question is marked as answered, I just wanted to give you a quick hint to prevent the Foundation 4 grid to act responsive, since we had also to deal with that.
In our case (SASS version) setting the width of the <body> element via css to the specific width of the grid and reducing the breakpoint in the SASS variable $small-screen to 1px worked fine.
Try to add a min-width in the body attributes like this:
html,
body {
font-size: 100%;
min-width: <value A>;
max-width: <value A>;
width: 100%;
}
(foundation.css)

Ajax Accordion and IE8 rendering problem

I have an accordion control that is generated in code. Earlier today it stopped rendering correctly in IE8. It would function ok, but sometimes the layout would get corrupted, and all kinds of weird graphical glitches occured. It did not fail in firefox.
I reset my IE settings to factory defaults and it fixed it. It works perfectly on another test machine, but on some of the machines on our network the graphical issues occur.
Has anyone else experienced the same or know a fix? All of our computers run internet explorer 8. If it becomes a big problem I will try forcing compatibility mode but I would prefer a more permenant fix (and also that might not even fix the issue!).
I've had issues like this in the past, most typically an issue with some CSS settings. If you use the developer tools in IE, look to see what CSS settings are being applied and try to rule that out.
A screenshot of what is happening and what should happen would be useful along with the code sample.
On your accordion headers only, place the following css code:
.accordionHeader { display: table; width: 100%; }
If you find that the headers still jump when hovering between them, use a border-top using a solid colour rather than using margin and padding. Of course this only works on designs ontop of solid colours (the border colour would need to match the background colour). Heres an example:
.accordionHeader { border-top: 10px solid #FFFFFF; }
This will fix IE8 right up! This has taken me a year to figure out lol.