Skip to content

Commit b9d441f

Browse files
committed
Settings editor - tweak padding
1 parent 094cffd commit b9d441f

2 files changed

Lines changed: 15 additions & 8 deletions

File tree

src/vs/workbench/parts/preferences/browser/media/settingsEditor2.css

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99

1010
.settings-editor {
1111
padding-top: 11px;
12-
padding-left: 2px;
12+
padding-left: 5px;
1313
max-width: 1100px;
1414
margin: auto;
1515
}
1616

1717
/* header styling */
1818
.settings-editor > .settings-header {
19-
padding-left: 5px;
20-
padding-right: 5px;
19+
padding-left: 17px;
20+
padding-right: 11px;
2121
box-sizing: border-box;
2222
margin: auto;
2323
}
@@ -72,7 +72,7 @@
7272
}
7373

7474
.settings-editor > .settings-header > .settings-header-controls {
75-
margin-top: 3px;
75+
margin-top: 8px;
7676
height: 30px;
7777
display: flex;
7878
}
@@ -114,6 +114,13 @@
114114
outline: none !important;
115115
}
116116

117+
.settings-editor > .settings-body .settings-tree-container .monaco-tree-wrapper,
118+
.settings-editor > .settings-body > .settings-tree-container .setting-measure-container {
119+
/** Allocate space for the scrollbar */
120+
width: calc(100% - 11px)
121+
}
122+
123+
117124
.settings-editor > .settings-body .settings-toc-container {
118125
width: 175px;
119126
margin-right: 5px;
@@ -155,8 +162,8 @@
155162
}
156163

157164
.settings-editor > .settings-body > .settings-tree-container .setting-item {
158-
padding-top: 9px;
159-
padding-bottom: 13px;
165+
padding-top: 11px;
166+
padding-bottom: 15px;
160167
box-sizing: border-box;
161168
cursor: default;
162169
white-space: normal;

src/vs/workbench/parts/preferences/browser/settingsTree.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,8 +474,8 @@ export interface ISettingChangeEvent {
474474

475475
export class SettingsRenderer implements IRenderer {
476476

477-
private static readonly SETTING_ROW_HEIGHT = 94;
478-
private static readonly SETTING_BOOL_ROW_HEIGHT = 61;
477+
private static readonly SETTING_ROW_HEIGHT = 98;
478+
private static readonly SETTING_BOOL_ROW_HEIGHT = 65;
479479

480480
private readonly _onDidChangeSetting: Emitter<ISettingChangeEvent> = new Emitter<ISettingChangeEvent>();
481481
public readonly onDidChangeSetting: Event<ISettingChangeEvent> = this._onDidChangeSetting.event;

0 commit comments

Comments
 (0)