Skip to content

Commit 34af9dd

Browse files
authored
fix: text overlay in replace input (microsoft#162036)
* fix: text overlay in replace input Signed-off-by: Yue Yang <[email protected]>
1 parent a9b627e commit 34af9dd

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,6 @@ export class ReplaceInput extends Widget {
273273

274274
public set width(newWidth: number) {
275275
this.inputBox.paddingRight = this.cachedOptionsWidth;
276-
this.inputBox.width = newWidth;
277276
this.domNode.style.width = newWidth + 'px';
278277
}
279278

src/vs/workbench/contrib/search/browser/media/searchview.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,10 @@
6868
display: none;
6969
}
7070

71-
.search-view .search-widget .monaco-findInput,
7271
.search-view .monaco-findInput {
7372
display: inline-block;
7473
vertical-align: middle;
75-
width: 100% !important;
74+
width: 100%;
7675
}
7776

7877
.search-view .search-widget .replace-container {

src/vs/workbench/contrib/search/browser/patternInputWidget.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ export class PatternInputWidget extends Widget {
7373

7474
setWidth(newWidth: number): void {
7575
this.width = newWidth;
76-
this.domNode.style.width = this.width + 'px';
7776
this.contextViewProvider.layout();
7877
this.setInputWidth();
7978
}
@@ -135,7 +134,6 @@ export class PatternInputWidget extends Widget {
135134

136135
private render(options: IOptions): void {
137136
this.domNode = document.createElement('div');
138-
this.domNode.style.width = this.width + 'px';
139137
this.domNode.classList.add('monaco-findInput');
140138

141139
this.inputBox = new ContextScopedHistoryInputBox(this.domNode, this.contextViewProvider, {

0 commit comments

Comments
 (0)