Opt debug console filter box into nice overflow behavior (#169342)

Also fix an issue with the body height calculation when the filter box is in the body
Fix #140540
This commit is contained in:
Rob Lourens 2022-12-15 18:35:42 -06:00 committed by GitHub
parent 1d7b98a1b7
commit c67a8afeef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 7 deletions

View file

@ -23,7 +23,7 @@
.monaco-action-bar .action-item .monaco-select-box {
cursor: pointer;
min-width: 110px;
min-width: 70px;
min-height: 18px;
padding: 2px 23px 2px 8px;
}

View file

@ -274,7 +274,7 @@
.panel > .title .monaco-action-bar .action-item.viewpane-filter-container {
max-width: 400px;
min-width: 300px;
min-width: 150px;
margin-right: 10px;
}

View file

@ -689,9 +689,11 @@ export abstract class FilterViewPane extends ViewPane {
this.updateActions();
if (!shouldShowFilterInHeader) {
append(this.filterContainer!, this.filterWidget.element);
height = height - 44;
}
}
if (!shouldShowFilterInHeader) {
height = height - 44;
}
this.filterWidget.layout(width);
this.layoutBodyContent(height, width);
}

View file

@ -491,10 +491,6 @@ export class Repl extends FilterViewPane implements IHistoryNavigationWidget {
this.replInput.layout({ width: width - 30, height: replInputHeight });
}
override shouldShowFilterInHeader(): boolean {
return true;
}
collapseAll(): void {
this.tree.collapseAll();
}