Skip to content

Commit 7674d15

Browse files
LPProfitLPProfit
authored andcommitted
Only add padding to inputBox if find options are enabled in findInput
1 parent 233c9b8 commit 7674d15

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/vs/base/browser/ui/findinput/findInput.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,10 @@ export class FindInput extends Widget {
358358
this._onCaseSensitiveKeyDown.fire(e);
359359
}));
360360

361+
if (this._showOptionButtons) {
362+
this.inputBox.inputElement.style.paddingRight = (this.caseSensitive.width() + this.wholeWords.width() + this.regex.width()) + 'px';
363+
}
364+
361365
// Arrow-Key support to navigate between options
362366
let indexes = [this.caseSensitive.domNode, this.wholeWords.domNode, this.regex.domNode];
363367
this.onkeydown(this.domNode, (event: IKeyboardEvent) => {

src/vs/editor/contrib/find/findWidget.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@
8181

8282
.monaco-editor .find-widget > .find-part .monaco-inputbox > .wrapper > .input {
8383
width: 100% !important;
84-
padding-right: 66px;
8584
}
8685
.monaco-editor .find-widget > .find-part .monaco-inputbox > .wrapper > .input,
8786
.monaco-editor .find-widget > .replace-part .monaco-inputbox > .wrapper > .input {

src/vs/workbench/contrib/terminal/browser/terminalFindWidget.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@
55

66
.monaco-workbench .simple-find-part .monaco-inputbox > .wrapper > .input {
77
width: 100% !important;
8-
padding-right: 66px;
98
}

0 commit comments

Comments
 (0)