- @if (!list.activeSavedViewId) {
- @for (view of savedViewService.allViews; track view) {
-
- }
- @if (savedViewService.allViews.length > 0) {
-
- }
+ @if (viewsDropdown.isOpen() && !list.activeSavedViewId && savedViewService.allViews.length > 0) {
+
+ @for (view of savedViewService.allViews; track view.id) {
+
+ }
+
+
}
@if (list.activeSavedViewId && activeSavedViewCanChange) {
diff --git a/src-ui/src/app/components/document-list/document-list.component.scss b/src-ui/src/app/components/document-list/document-list.component.scss
index 34c6dc1d5..21eeb4232 100644
--- a/src-ui/src/app/components/document-list/document-list.component.scss
+++ b/src-ui/src/app/components/document-list/document-list.component.scss
@@ -93,4 +93,8 @@ a {
pngx-page-header .dropdown-menu {
--bs-dropdown-min-width: 12em;
+
+ .views-list {
+ max-height: min(400px, calc(100vh - 260px)); // leave room for the header above and the actions below
+ }
}