Skip to content

Commit fad1b7c

Browse files
authored
Fine tune tree find widget layout (microsoft#156579)
fixes microsoft#156247
1 parent 3bf342b commit fad1b7c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/vs/base/browser/ui/tree/abstractTree.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ class FindWidget<T, TFilterData> extends Disposable {
799799

800800
layout(width: number = this.width): void {
801801
this.width = width;
802-
this.right = Math.min(Math.max(20, this.right), Math.max(20, width - 170));
802+
this.right = clamp(this.right, 0, Math.max(0, width - 212));
803803
this.elements.root.style.right = `${this.right}px`;
804804
}
805805

src/vs/base/browser/ui/tree/media/tree.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,9 @@
7474
display: flex;
7575
padding: 3px;
7676
transition: top 0.3s;
77-
width: 160px;
77+
max-width: 200px;
7878
z-index: 100;
79+
margin: 0 6px;
7980
}
8081

8182
.monaco-tree-type-filter.disabled {

0 commit comments

Comments
 (0)