未验证 提交 0e30c343 编写于 作者: P Peng Lyu 提交者: GitHub

Merge pull request #68467 from frobinsonj/find-input-padding

#68074: Only add padding to inputBox if find options are enabled in findInput
......@@ -358,6 +358,10 @@ export class FindInput extends Widget {
this._onCaseSensitiveKeyDown.fire(e);
}));
if (this._showOptionButtons) {
this.inputBox.inputElement.style.paddingRight = (this.caseSensitive.width() + this.wholeWords.width() + this.regex.width()) + 'px';
}
// Arrow-Key support to navigate between options
let indexes = [this.caseSensitive.domNode, this.wholeWords.domNode, this.regex.domNode];
this.onkeydown(this.domNode, (event: IKeyboardEvent) => {
......
......@@ -81,7 +81,6 @@
.monaco-editor .find-widget > .find-part .monaco-inputbox > .wrapper > .input {
width: 100% !important;
padding-right: 66px;
}
.monaco-editor .find-widget > .find-part .monaco-inputbox > .wrapper > .input,
.monaco-editor .find-widget > .replace-part .monaco-inputbox > .wrapper > .input {
......
......@@ -5,5 +5,4 @@
.monaco-workbench .simple-find-part .monaco-inputbox > .wrapper > .input {
width: 100% !important;
padding-right: 66px;
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册