A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Tweak: better support long list of views in documents list (#13769)
shamoond24606a03bfe
diff --git a/src-ui/src/app/components/document-list/document-list.component.html b/src-ui/src/app/components/document-list/document-list.component.htmlindex 36a7dd158..9c2a6d5bc 100644--- a/src-ui/src/app/components/document-list/document-list.component.html+++ b/src-ui/src/app/components/document-list/document-list.component.html@@ -85,7 +85,7 @@</div></div>- <div class="btn-group flex-fill" *pngxIfPermissions="{ action: PermissionAction.View, type: PermissionType.SavedView }" ngbDropdown role="group">+ <div class="btn-group flex-fill" *pngxIfPermissions="{ action: PermissionAction.View, type: PermissionType.SavedView }" ngbDropdown #viewsDropdown="ngbDropdown" role="group"><button class="btn btn-sm btn-outline-primary dropdown-toggle flex-fill" tourAnchor="tour.documents-views" ngbDropdownToggle><i-bs name="window-stack"></i-bs><div class="d-none d-sm-inline ms-1"><ng-container i18n>Views</ng-container></div>@if (savedViewIsModified) {@@ -95,15 +95,15 @@}</button><div class="dropdown-menu shadow dropdown-menu-right" ngbDropdownMenu>- @if (!list.activeSavedViewId) {- @for (view of savedViewService.allViews; track view) {- <button ngbDropdownItem (click)="loadViewConfig(view.id)">- <i-bs class="me-2" [name]="view.icon || 'funnel'"></i-bs>{{view.name}}- </button>- }- @if (savedViewService.allViews.length > 0) {- <div class="dropdown-divider"></div>- }+ @if (viewsDropdown.isOpen() && !list.activeSavedViewId && savedViewService.allViews.length > 0) {+ <div class="views-list overflow-y-auto">+ @for (view of savedViewService.allViews; track view.id) {+ <button ngbDropdownItem (click)="loadViewConfig(view.id)">+ <i-bs class="me-2" [name]="view.icon || 'funnel'"></i-bs>{{view.name}}+ </button>+ }+ </div>+ <div class="dropdown-divider"></div>}@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.scssindex 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+ }}