Skip to content

Commit

Permalink
fix(filter): Set max height for the log-level listbox and refine styl…
Browse files Browse the repository at this point in the history
…ing (fixes #150). (#155)
  • Loading branch information
junhaoliao authored Jan 6, 2025
1 parent 5a3bd10 commit 5b368b9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/StatusBar/LogLevelSelect/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
}

.log-level-select-listbox {
/* Disallow width auto-resizing with the `Select` button. */
max-width: 0;
max-height: calc(100vh - var(--ylv-menu-bar-height) - var(--ylv-status-bar-height)) !important;
}

.log-level-select-option-text-tooltip {
Expand Down
7 changes: 7 additions & 0 deletions src/components/StatusBar/LogLevelSelect/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,13 @@ const LogLevelSelect = () => {
listbox: {
className: "log-level-select-listbox",
placement: "top-end",
modifiers: [
// Disallow listbox width auto-resizing with the `Select` button.
{name: "equalWidth", enabled: false},

// Remove gap between the listbox and the `Select` button.
{name: "offset", enabled: false},
],
},
}}
>
Expand Down

0 comments on commit 5b368b9

Please sign in to comment.