From 5a54ed509d59d5deba60d343c5937bfaa6798957 Mon Sep 17 00:00:00 2001 From: acx10 Date: Mon, 15 Dec 2025 21:20:39 -0700 Subject: [PATCH] UI Tweaks --- .../book-browser/BookDialogHelperService.ts | 11 ++++++----- .../multi-book-metadata-editor-component.html | 2 +- .../app/shared/services/dialog-launcher.service.ts | 8 +++++--- booklore-ui/src/assets/layout/styles/global.scss | 12 ++++++++++++ 4 files changed, 24 insertions(+), 9 deletions(-) diff --git a/booklore-ui/src/app/features/book/components/book-browser/BookDialogHelperService.ts b/booklore-ui/src/app/features/book/components/book-browser/BookDialogHelperService.ts index 8ad16f61d..07b84b3c3 100644 --- a/booklore-ui/src/app/features/book/components/book-browser/BookDialogHelperService.ts +++ b/booklore-ui/src/app/features/book/components/book-browser/BookDialogHelperService.ts @@ -20,7 +20,7 @@ import {AdditionalFileUploaderComponent} from '../additional-file-uploader/addit export class BookDialogHelperService { private dialogLauncherService = inject(DialogLauncherService); - + private openDialog(component: any, options: {}): DynamicDialogRef | null { return this.dialogLauncherService.openDialog(component, options); } @@ -36,7 +36,7 @@ export class BookDialogHelperService { } openShelfAssignerDialog(book: Book | null, bookIds: Set | null): DynamicDialogRef | null { - const data:any = {}; + const data: any = {}; if (book !== null) { data.isMultiBooks = false; data.book = book; @@ -87,7 +87,7 @@ export class BookDialogHelperService { data: { bookIds: Array.from(bookIds), }, - styleClass: 'dialog-maximal', + styleClass: 'dialog-maximal' }); } @@ -97,7 +97,7 @@ export class BookDialogHelperService { data: { bookIds: Array.from(bookIds), }, - styleClass: 'dialog-maximal', + styleClass: 'dialog-full' }); } @@ -108,7 +108,8 @@ export class BookDialogHelperService { data: { bookIds: Array.from(bookIds), }, - styleClass: 'dialog-maximal', + styleClass: 'dialog-full', + maximizable: true, }); } diff --git a/booklore-ui/src/app/features/metadata/component/multi-book-metadata-editor/multi-book-metadata-editor-component.html b/booklore-ui/src/app/features/metadata/component/multi-book-metadata-editor/multi-book-metadata-editor-component.html index d77168d96..881c8df13 100644 --- a/booklore-ui/src/app/features/metadata/component/multi-book-metadata-editor/multi-book-metadata-editor-component.html +++ b/booklore-ui/src/app/features/metadata/component/multi-book-metadata-editor/multi-book-metadata-editor-component.html @@ -8,7 +8,7 @@ Search Metadata } - + @if (admin || canEditMetadata) {