Skip to content

Commit 534b050

Browse files
authored
fix: improve the style of edit's input (#838)
1 parent 2f7088c commit 534b050

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

src/components/collapse/style.scss

+5-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
$collapse__extra: #{$collapse}__extra;
44
$split_pane_visible: #{$split}__pane__item--visible;
55

6+
$header-size: 26px;
7+
68
#{$collapse} {
79
background-color: var(--sideBar-background);
810
color: var(--sideBar-foreground);
@@ -44,7 +46,7 @@ $split_pane_visible: #{$split}__pane__item--visible;
4446
display: flex;
4547
font-size: 11px;
4648
font-weight: bold;
47-
height: 26px;
49+
height: $header-size;
4850
outline: 1px solid transparent;
4951
outline-offset: -1px;
5052
padding: 1px 2px;
@@ -73,9 +75,10 @@ $split_pane_visible: #{$split}__pane__item--visible;
7375

7476
&__content {
7577
flex: 1;
76-
height: calc(100% - 25px);
78+
height: calc(100% - $header-size);
7779
outline: 1px solid transparent;
7880
outline-offset: -1px;
81+
padding: 0 1px;
7982

8083
&:focus {
8184
outline-color: var(--list-focusOutline);

src/components/tree/style.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ $treenode-height: 22px;
2727
}
2828

2929
&__title {
30-
margin-left: 5px;
3130
overflow: hidden;
31+
padding-left: 5px;
3232
text-overflow: ellipsis;
3333
white-space: nowrap;
3434
width: 100%;

src/workbench/sidebar/explore/style.scss

+3-4
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,11 @@
3232
border: 1px solid var(--list-focusOutline);
3333
color: var(--input-foreground);
3434
font-family: inherit;
35-
font-size: 13px;
36-
height: 20px;
37-
left: 0;
35+
font-size: inherit;
36+
left: -2px;
3837
margin: 0;
3938
outline: none;
40-
padding: 0;
39+
padding: 2px 1px;
4140
position: relative;
4241
width: calc(100% - 2px);
4342

0 commit comments

Comments
 (0)