Fix: Assign Books to Shelves popup visually broken (#1783)

This commit is contained in:
Aditya Chandel
2025-12-06 20:56:16 -07:00
committed by GitHub
parent 6eae9b88dc
commit 04b9f88510
4 changed files with 11 additions and 17 deletions
@@ -19,13 +19,9 @@ export class BookDialogHelperService {
showHeader: false, showHeader: false,
modal: true, modal: true,
closable: true, closable: true,
contentStyle: {overflow: 'auto'}, contentStyle: {overflow: 'hidden'},
styleClass: 'dynamic-dialog-minimal', styleClass: 'dynamic-dialog-minimal',
baseZIndex: 10, baseZIndex: 10,
style: {
position: 'absolute',
top: '15%',
},
data: { data: {
isMultiBooks: true, isMultiBooks: true,
bookIds, bookIds,
@@ -466,13 +466,9 @@ export class BookCardComponent implements OnInit, OnChanges, OnDestroy {
modal: true, modal: true,
dismissableMask: true, dismissableMask: true,
closable: true, closable: true,
contentStyle: {overflow: 'auto'}, contentStyle: {overflow: 'hidden'},
styleClass: 'dynamic-dialog-minimal', styleClass: 'dynamic-dialog-minimal',
baseZIndex: 10, baseZIndex: 10,
style: {
position: 'absolute',
top: '15%',
},
data: { data: {
book: this.book, book: this.book,
}, },
@@ -92,12 +92,13 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 1rem; gap: 1rem;
padding: 1.75rem; padding: 1rem 2rem;
background: var(--card-background); background: var(--card-background);
border: 1px solid var(--border-color); border: 1px solid var(--border-color);
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
min-height: 350px; min-height: 350px;
max-height: 450px; max-height: 450px;
overflow: hidden;
@media (max-width: 480px) { @media (max-width: 480px) {
padding: 1rem; padding: 1rem;
@@ -111,6 +112,7 @@
flex-direction: column; flex-direction: column;
gap: 0.75rem; gap: 0.75rem;
height: 100%; height: 100%;
overflow: hidden;
} }
.list-header { .list-header {
@@ -146,10 +148,11 @@
.shelves-grid { .shelves-grid {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 0.5rem; gap: 0.75rem;
overflow-y: auto; overflow-y: auto;
flex: 1; flex: 1;
padding-right: 0.25rem; padding-right: 0.25rem;
min-height: 0;
&::-webkit-scrollbar { &::-webkit-scrollbar {
width: 6px; width: 6px;
@@ -178,7 +181,7 @@
display: flex; display: flex;
align-items: center; align-items: center;
gap: 0.75rem; gap: 0.75rem;
padding: 0.75rem; padding: 0.5rem 1rem;
background: var(--ground-background); background: var(--ground-background);
border: 1px solid var(--border-color); border: 1px solid var(--border-color);
border-radius: 8px; border-radius: 8px;
@@ -225,8 +228,8 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
width: 38px; width: 34px;
height: 38px; height: 34px;
background: var(--overlay-background); background: var(--overlay-background);
border-radius: 8px; border-radius: 8px;
flex-shrink: 0; flex-shrink: 0;
@@ -431,9 +431,8 @@ export class MetadataViewerComponent implements OnInit, OnChanges {
dismissableMask: true, dismissableMask: true,
modal: true, modal: true,
closable: true, closable: true,
contentStyle: {overflow: 'auto'}, contentStyle: {overflow: 'hidden'},
baseZIndex: 10, baseZIndex: 10,
style: {position: 'absolute', top: '15%'},
data: {book: this.bookService.getBookByIdFromState(bookId)} data: {book: this.bookService.getBookByIdFromState(bookId)}
}); });
} }