Skip to content

Commit 33051f3

Browse files
authored
fix: Input box jittering when getting focus and losing focus (#647)
* use inner border and fix border
1 parent 006fc5d commit 33051f3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/formatter-settings/assets/style.scss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ $enable-rounded: false;
134134
margin-right: 9px;
135135
color: var(--vscode-settings-textInputForeground);
136136
background-color: var(--vscode-settings-textInputBackground);
137-
border: 1px solid var(--vscode-settings-textInputBorder);
138137
border-radius: 3px 3px 3px 3px;
138+
border: 1px solid var(--vscode-settings-dropdownBorder);
139139
content: "";
140140
}
141141
}
@@ -144,10 +144,12 @@ $enable-rounded: false;
144144
.form-control {
145145
color: var(--vscode-settings-textInputForeground) !important;
146146
background-color: var(--vscode-settings-textInputBackground) !important;
147-
border: 1px solid var(--vscode-settings-textInputBorder) !important;
147+
border: 1px solid var(--vscode-settings-dropdownBorder) !important;
148148
height: auto !important;
149149
padding: 2px 4px !important;
150150
width: 250px !important;
151+
box-sizing: border-box !important;
152+
transition: none !important;
151153
&:focus, &:active{
152154
outline: none !important;
153155
box-shadow: none !important;
@@ -177,7 +179,7 @@ input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer
177179

178180
code.hljs {
179181
background-color: var(--vscode-notebook-rowHoverBackground) !important;
180-
border: 1px solid var(--vscode-settings-textInputBorder);
182+
border: 1px solid var(--vscode-settings-dropdownBorder);
181183
padding: 10px 15px 15px 15px !important;
182184
}
183185

0 commit comments

Comments
 (0)