File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed
src/vs/workbench/contrib/preferences/browser Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 49
49
min-width : 40% ;
50
50
}
51
51
52
+ .settings-editor > .settings-body .settings-tree-container .setting-item .setting-item-list .setting-list-value {
53
+ width : 60% ;
54
+ }
55
+ .settings-editor > .settings-body .settings-tree-container .setting-item .setting-item-list .setting-list-sibling {
56
+ width : 40% ;
57
+ }
58
+ .settings-editor > .settings-body .settings-tree-container .setting-item .setting-item-list .setting-list-value .no-sibling {
59
+ width : 100% ;
60
+ }
61
+
52
62
.settings-editor > .settings-body .settings-tree-container .setting-item .setting-item-list .setting-list-object-widget .setting-list-object-input-value ,
53
63
.settings-editor > .settings-body .settings-tree-container .setting-item .setting-item-list .setting-list-object-widget .setting-list-object-value {
54
64
width : 100% ;
86
96
margin-left : 0.5em ;
87
97
font-size : 0.9em ;
88
98
white-space : pre;
99
+
100
+ /* In case the text is too long, we don't want to block the pencil icon. */
101
+ box-sizing : border-box;
102
+ padding-right : 50px ;
89
103
}
90
104
91
105
.settings-editor > .settings-body .settings-tree-container .setting-item .setting-item-list .setting-list-row .monaco-action-bar {
Original file line number Diff line number Diff line change @@ -513,7 +513,12 @@ export class ListSettingWidget<TListDataItem extends IListDataItem> extends Abst
513
513
const siblingElement = DOM . append ( rowElement , $ ( '.setting-list-sibling' ) ) ;
514
514
515
515
valueElement . textContent = item . value . data . toString ( ) ;
516
- siblingElement . textContent = item . sibling ? `when: ${ item . sibling } ` : null ;
516
+ if ( item . sibling ) {
517
+ siblingElement . textContent = `when: ${ item . sibling } ` ;
518
+ } else {
519
+ siblingElement . textContent = null ;
520
+ valueElement . classList . add ( 'no-sibling' ) ;
521
+ }
517
522
518
523
this . addDragAndDrop ( rowElement , item , idx ) ;
519
524
return { rowElement, keyElement : valueElement , valueElement : siblingElement } ;
You can’t perform that action at this time.
0 commit comments