UI Tweaks
This commit is contained in:
+6
-5
@@ -20,7 +20,7 @@ import {AdditionalFileUploaderComponent} from '../additional-file-uploader/addit
|
|||||||
export class BookDialogHelperService {
|
export class BookDialogHelperService {
|
||||||
|
|
||||||
private dialogLauncherService = inject(DialogLauncherService);
|
private dialogLauncherService = inject(DialogLauncherService);
|
||||||
|
|
||||||
private openDialog(component: any, options: {}): DynamicDialogRef | null {
|
private openDialog(component: any, options: {}): DynamicDialogRef | null {
|
||||||
return this.dialogLauncherService.openDialog(component, options);
|
return this.dialogLauncherService.openDialog(component, options);
|
||||||
}
|
}
|
||||||
@@ -36,7 +36,7 @@ export class BookDialogHelperService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
openShelfAssignerDialog(book: Book | null, bookIds: Set<number> | null): DynamicDialogRef | null {
|
openShelfAssignerDialog(book: Book | null, bookIds: Set<number> | null): DynamicDialogRef | null {
|
||||||
const data:any = {};
|
const data: any = {};
|
||||||
if (book !== null) {
|
if (book !== null) {
|
||||||
data.isMultiBooks = false;
|
data.isMultiBooks = false;
|
||||||
data.book = book;
|
data.book = book;
|
||||||
@@ -87,7 +87,7 @@ export class BookDialogHelperService {
|
|||||||
data: {
|
data: {
|
||||||
bookIds: Array.from(bookIds),
|
bookIds: Array.from(bookIds),
|
||||||
},
|
},
|
||||||
styleClass: 'dialog-maximal',
|
styleClass: 'dialog-maximal'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -97,7 +97,7 @@ export class BookDialogHelperService {
|
|||||||
data: {
|
data: {
|
||||||
bookIds: Array.from(bookIds),
|
bookIds: Array.from(bookIds),
|
||||||
},
|
},
|
||||||
styleClass: 'dialog-maximal',
|
styleClass: 'dialog-full'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -108,7 +108,8 @@ export class BookDialogHelperService {
|
|||||||
data: {
|
data: {
|
||||||
bookIds: Array.from(bookIds),
|
bookIds: Array.from(bookIds),
|
||||||
},
|
},
|
||||||
styleClass: 'dialog-maximal',
|
styleClass: 'dialog-full',
|
||||||
|
maximizable: true,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -8,7 +8,7 @@
|
|||||||
<p-tab value="match">Search Metadata</p-tab>
|
<p-tab value="match">Search Metadata</p-tab>
|
||||||
}
|
}
|
||||||
</p-tablist>
|
</p-tablist>
|
||||||
<p-tabpanels class="h-[80dvh]">
|
<p-tabpanels class="h-[78dvh]">
|
||||||
@if (admin || canEditMetadata) {
|
@if (admin || canEditMetadata) {
|
||||||
<p-tabpanel value="edit">
|
<p-tabpanel value="edit">
|
||||||
<app-metadata-editor
|
<app-metadata-editor
|
||||||
|
|||||||
@@ -34,12 +34,14 @@ export class DialogLauncherService {
|
|||||||
modal: true,
|
modal: true,
|
||||||
resizable: false,
|
resizable: false,
|
||||||
showHeader: true,
|
showHeader: true,
|
||||||
|
maximizable: false,
|
||||||
}
|
}
|
||||||
|
|
||||||
openDialog(component: any, options: {}): DynamicDialogRef | null {
|
openDialog(component: any, options: {}): DynamicDialogRef | null {
|
||||||
return this.dialogService.open(component, {
|
return this.dialogService.open(component, {
|
||||||
...this.defaultDialogOptions,
|
...this.defaultDialogOptions,
|
||||||
...options,
|
...options,
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -86,7 +88,7 @@ export class DialogLauncherService {
|
|||||||
data: {
|
data: {
|
||||||
libraryId: libraryId,
|
libraryId: libraryId,
|
||||||
metadataRefreshType: MetadataRefreshType.LIBRARY,
|
metadataRefreshType: MetadataRefreshType.LIBRARY,
|
||||||
}
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -186,4 +188,4 @@ export class DialogLauncherService {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,6 +27,18 @@
|
|||||||
max-height: 95vh;
|
max-height: 95vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dialog-full.p-dialog {
|
||||||
|
width: 95vw;
|
||||||
|
height: 95vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dialog-medium.p-dialog {
|
||||||
|
width: 90vw;
|
||||||
|
max-width: 900px;
|
||||||
|
height: 90vh;
|
||||||
|
max-height: 90vh;
|
||||||
|
}
|
||||||
|
|
||||||
.gradient-divider {
|
.gradient-divider {
|
||||||
min-height: 1px;
|
min-height: 1px;
|
||||||
height: 1px;
|
height: 1px;
|
||||||
|
|||||||
Reference in New Issue
Block a user