Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fine tune tree find widget layout #156579

Merged
merged 1 commit into from Jul 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/vs/base/browser/ui/tree/abstractTree.ts
Expand Up @@ -799,7 +799,7 @@ class FindWidget<T, TFilterData> extends Disposable {

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

Expand Down
3 changes: 2 additions & 1 deletion src/vs/base/browser/ui/tree/media/tree.css
Expand Up @@ -74,8 +74,9 @@
display: flex;
padding: 3px;
transition: top 0.3s;
width: 160px;
max-width: 200px;
z-index: 100;
margin: 0 6px;
}

.monaco-tree-type-filter.disabled {
Expand Down