refactor(frontend): decouple app shell from PrimeNG layout system (#307)
* refactor(layout): decouple shell from PrimeNG * fix(frontend): review fixes for layout decoupling - Rewrite layout service spec to match new API surface - Remove dead ToastModule import from AppLayoutComponent - Add missing type="button" to profile and logout buttons - Add missing i18n keys to all non-English locales * chore(frontend): Layout shell consistency * chore(frontend): shell and routing improvements * chore(frontend): remove stray shimmer effect * chore(frontend): code cleanup * chore(ui): Fix navitem types consistency * chore(frontend): simplify layout structure + imports * chore(frontend): remove empty files * chore(frontend): Menu component cleanup * chore(frontend): remove nav translation layer * chore(frontend): revert stray artwork change * chore(frontend): revert author animation tweak * chore(frontend): review fixes * fix(frontend): restore topbar template after rebase conflict
This commit is contained in:
@@ -172,11 +172,13 @@ export class BookBrowserComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||
return [];
|
||||
}
|
||||
|
||||
return this.entityService.isLibrary(entity)
|
||||
const actions = this.entityService.isLibrary(entity)
|
||||
? this.libraryShelfMenuService.initializeLibraryMenuItems(entity)
|
||||
: this.entityService.isMagicShelf(entity)
|
||||
? this.libraryShelfMenuService.initializeMagicShelfMenuItems(entity)
|
||||
: this.libraryShelfMenuService.initializeShelfMenuItems(entity);
|
||||
|
||||
return actions;
|
||||
});
|
||||
readonly books = computed(() => {
|
||||
const {entityId, entityType} = this.entityInfo();
|
||||
@@ -999,4 +1001,5 @@ export class BookBrowserComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||
this.mobileColumnCount = saved;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+2
-2
@@ -33,12 +33,12 @@
|
||||
|
||||
.cover-container.audiobook-cover {
|
||||
aspect-ratio: 5/7;
|
||||
background-color: var(--surface-ground);
|
||||
background-color: var(--ground-background);
|
||||
}
|
||||
|
||||
.cover-container.square-library-cover {
|
||||
aspect-ratio: 1/1;
|
||||
background-color: var(--surface-ground);
|
||||
background-color: var(--ground-background);
|
||||
}
|
||||
|
||||
.book-cover {
|
||||
|
||||
@@ -115,12 +115,12 @@
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-track {
|
||||
background: var(--surface-ground);
|
||||
background: var(--ground-background);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-thumb {
|
||||
background: var(--surface-border);
|
||||
background: var(--border-color);
|
||||
border-radius: 4px;
|
||||
|
||||
&:hover {
|
||||
@@ -293,7 +293,7 @@
|
||||
|
||||
.review-title-section {
|
||||
flex-shrink: 0;
|
||||
border-bottom: 1px solid var(--surface-border);
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
padding: 8px 16px 4px;
|
||||
}
|
||||
|
||||
@@ -363,12 +363,12 @@
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-track {
|
||||
background: var(--surface-ground);
|
||||
background: var(--ground-background);
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-thumb {
|
||||
background: var(--surface-border);
|
||||
background: var(--border-color);
|
||||
border-radius: 2px;
|
||||
|
||||
&:hover {
|
||||
|
||||
+2
-2
@@ -139,7 +139,7 @@
|
||||
object-fit: cover;
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
|
||||
background-color: var(--surface-ground);
|
||||
background-color: var(--ground-background);
|
||||
aspect-ratio: 2/3;
|
||||
}
|
||||
|
||||
@@ -192,7 +192,7 @@
|
||||
.search-book-year {
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-secondary-color);
|
||||
background-color: var(--surface-ground);
|
||||
background-color: var(--ground-background);
|
||||
padding: 0.125rem 0.5rem;
|
||||
border-radius: 4px;
|
||||
white-space: nowrap;
|
||||
|
||||
@@ -285,7 +285,7 @@
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
padding: 0.625rem 0.875rem;
|
||||
background: var(--surface-ground);
|
||||
background: var(--ground-background);
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
border-radius: 0.75rem 0.75rem 0 0;
|
||||
font-weight: 600;
|
||||
|
||||
Reference in New Issue
Block a user