A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Fix: mobile save button display obsessing (#14676)
shamoonec47c0f11dde
diff --git a/src-ui/src/app/components/document-detail/document-detail.component.html b/src-ui/src/app/components/document-detail/document-detail.component.htmlindex 1eb1b45b2..00267e76d 100644--- a/src-ui/src/app/components/document-detail/document-detail.component.html+++ b/src-ui/src/app/components/document-detail/document-detail.component.html@@ -436,21 +436,22 @@</div><ng-template #saveButtons>+ @let saveDisabled = !userCanEdit || networkActive() || (isDirty$ | async) !== true;<div class="btn-group"><ng-container *pngxIfPermissions="{ action: PermissionAction.Change, type: PermissionType.Document }">- <button type="submit" class="order-3 btn btn-sm btn-primary" title="Save" i18n-title [disabled]="!userCanEdit || networkActive() || (isDirty$ | async) !== true">+ <button type="submit" class="order-3 btn btn-sm" [class.btn-primary]="!saveDisabled" [class.btn-outline-primary]="saveDisabled" title="Save" i18n-title [disabled]="saveDisabled"><pngx-bs-icon class="d-md-none" width="1.2em" height="1.2em" name="floppy"></pngx-bs-icon><span class="d-none d-md-inline" i18n>Save</span></button>@if (hasNext()) {- <button type="button" class="order-1 btn btn-sm btn-outline-primary d-none d-md-inline-block" (click)="saveEditNext()" i18n [disabled]="!userCanEdit || networkActive() || (isDirty$ | async) !== true">Save & next</button>+ <button type="button" class="order-1 btn btn-sm btn-outline-primary d-none d-md-inline-block" (click)="saveEditNext()" i18n [disabled]="saveDisabled">Save & next</button>} @else {- <button type="button" class="order-2 btn btn-sm btn-outline-primary d-none d-md-inline-block" (click)="save(true)" i18n [disabled]="!userCanEdit || networkActive() || (isDirty$ | async) !== true">Save & close</button>+ <button type="button" class="order-2 btn btn-sm btn-outline-primary d-none d-md-inline-block" (click)="save(true)" i18n [disabled]="saveDisabled">Save & close</button>}- <button type="button" class="order-0 btn btn-sm btn-outline-secondary" (click)="discard()" title="Discard" i18n-title [disabled]="!userCanEdit || networkActive() || (isDirty$ | async) !== true">+ <button type="button" class="order-0 btn btn-sm btn-outline-secondary" (click)="discard()" title="Discard" i18n-title [disabled]="saveDisabled"><pngx-bs-icon class="d-md-none" width="1.2em" height="1.2em" name="arrow-counterclockwise"></pngx-bs-icon><span class="d-none d-md-inline" i18n>Discard</span></button><div class="btn-group order-4 d-md-none" ngbDropdown placement="bottom-end top-end" role="group">- <button type="button" class="btn btn-sm btn-outline-primary dropdown-toggle dropdown-toggle-split" ngbDropdownToggle aria-label="More save options" i18n-aria-label [disabled]="!userCanEdit || networkActive() || (isDirty$ | async) !== true"></button>+ <button type="button" class="btn btn-sm btn-outline-primary dropdown-toggle dropdown-toggle-split" ngbDropdownToggle aria-label="More save options" i18n-aria-label [disabled]="saveDisabled"></button><div class="dropdown-menu shadow" ngbDropdownMenu>@if (hasNext()) {<button type="button" ngbDropdownItem (click)="saveEditNext()" i18n>Save & next</button>diff --git a/src-ui/src/app/components/document-detail/document-detail.component.scss b/src-ui/src/app/components/document-detail/document-detail.component.scssindex 3d7f6c5bb..3fecdf443 100644--- a/src-ui/src/app/components/document-detail/document-detail.component.scss+++ b/src-ui/src/app/components/document-detail/document-detail.component.scss@@ -54,7 +54,16 @@ textarea.rtl {border-color: var(--bs-border-color);}+// save buttons are visually reordered with order-*, fix btn-group border overlap here+.btn-group > .order-1,+.btn-group > .order-2,+.btn-group > .order-3,+.btn-group > .order-4 {+ margin-left: calc(-1 * var(--bs-border-width));+}+.btn-group .btn.order-0 {+ margin-left: 0;border-top-right-radius: 0;border-bottom-right-radius: 0;border-top-left-radius: var(--bs-border-radius-sm);