From 2324c56e5b98a676af28ec4e70813fd96eec48ab Mon Sep 17 00:00:00 2001 From: DingDongSoLong4 <99329275+DingDongSoLong4@users.noreply.github.com> Date: Tue, 26 Dec 2023 00:29:44 +0200 Subject: [PATCH] Fix saved filter list double scrollbar --- .../src/components/List/SavedFilterList.tsx | 22 ++++++++++--------- ui/v2.5/src/components/List/styles.scss | 11 ++++++++++ 2 files changed, 23 insertions(+), 10 deletions(-) diff --git a/ui/v2.5/src/components/List/SavedFilterList.tsx b/ui/v2.5/src/components/List/SavedFilterList.tsx index 7d0b1233a9b..78808a3276c 100644 --- a/ui/v2.5/src/components/List/SavedFilterList.tsx +++ b/ui/v2.5/src/components/List/SavedFilterList.tsx @@ -311,20 +311,22 @@ export const SavedFilterList: React.FC = ({ function maybeRenderSetDefaultButton() { if (persistState === PersistanceLevel.ALL) { return ( - +
+ +
); } } return ( -
+ <> {maybeRenderDeleteAlert()} {maybeRenderOverwriteAlert()} @@ -359,6 +361,6 @@ export const SavedFilterList: React.FC = ({ {renderSavedFilters()} {maybeRenderSetDefaultButton()} -
+ ); }; diff --git a/ui/v2.5/src/components/List/styles.scss b/ui/v2.5/src/components/List/styles.scss index 1c6a390f411..2b193cad389 100644 --- a/ui/v2.5/src/components/List/styles.scss +++ b/ui/v2.5/src/components/List/styles.scss @@ -65,8 +65,14 @@ input[type="range"].zoom-slider { .saved-filter-list-menu { width: 300px; + &.dropdown-menu.show { + display: flex; + flex-direction: column; + } + .set-as-default-button { float: right; + margin-right: 0.5rem; } .LoadingIndicator { @@ -94,12 +100,17 @@ input[type="range"].zoom-slider { align-items: center; display: inline; overflow-x: hidden; + padding-left: 1.25rem; padding-right: 0.25rem; text-overflow: ellipsis; } .btn-group { margin-left: auto; + + .btn { + border-radius: 0; + } } .delete-button {