feat(ui): New sidebar & search UI (#831)
This commit is contained in:
+2
@@ -1,4 +1,5 @@
|
||||
<ng-container *transloco="let t; prefix: 'authorBrowser'">
|
||||
<div class="author-browser-page">
|
||||
@if (loading()) {
|
||||
<div class="loading-state">
|
||||
<p-progressSpinner
|
||||
@@ -271,4 +272,5 @@
|
||||
</div>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
</ng-container>
|
||||
|
||||
+25
-7
@@ -1,12 +1,24 @@
|
||||
.author-browser-page {
|
||||
--browser-gutter-inline: 2.1rem;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
min-height: 0;
|
||||
padding: 1.1rem 0 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.loading-state {
|
||||
display: flex;
|
||||
flex: 1 1 auto;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: calc(100dvh - 6.7rem);
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.browse-header {
|
||||
padding: 0.75rem 1rem 0;
|
||||
padding: 0.75rem var(--browser-gutter-inline) 0;
|
||||
}
|
||||
|
||||
.browse-title {
|
||||
@@ -131,15 +143,15 @@
|
||||
}
|
||||
|
||||
.virtual-scroller {
|
||||
flex: 1 1 auto;
|
||||
width: 100%;
|
||||
height: calc(100dvh - 12.5rem);
|
||||
padding: 1rem;
|
||||
min-height: 0;
|
||||
padding: 1rem var(--browser-gutter-inline);
|
||||
box-sizing: border-box;
|
||||
overflow-y: auto;
|
||||
|
||||
@media (width <= 768px) {
|
||||
height: calc(100dvh - 13rem);
|
||||
padding: 0.5rem;
|
||||
padding-block: 0.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -241,8 +253,14 @@
|
||||
}
|
||||
|
||||
@media (width <= 767px) {
|
||||
.author-browser-page {
|
||||
--browser-gutter-inline: 0.5rem;
|
||||
|
||||
padding: 1.5rem 0 0;
|
||||
}
|
||||
|
||||
.browse-header {
|
||||
padding: 0.5rem 0.5rem 0;
|
||||
padding-top: 0.5rem;
|
||||
}
|
||||
|
||||
.browse-controls {
|
||||
|
||||
-1
@@ -205,7 +205,6 @@ export class AuthorBrowserComponent implements OnInit {
|
||||
minItemWidth: this.minCardWidth,
|
||||
gap: AuthorBrowserComponent.GRID_GAP,
|
||||
initialOffset: this.initialScrollOffset,
|
||||
fillItemWidth: true,
|
||||
estimateItemHeight: itemWidth => Math.round(itemWidth * this.cardAspectRatio()),
|
||||
});
|
||||
|
||||
|
||||
+32
-11
@@ -1,19 +1,35 @@
|
||||
.tabpanels-responsive {
|
||||
height: calc(100dvh - 9.7rem);
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
@media (width <= 768px) {
|
||||
.tabpanels-responsive {
|
||||
height: calc(100dvh - 8.5rem);
|
||||
}
|
||||
.author-wrapper {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
min-height: 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.author-wrapper {
|
||||
position: relative;
|
||||
border-radius: 0.75rem;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--p-content-border-color);
|
||||
.author-wrapper > p-tabs {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
::ng-deep .author-wrapper .p-tabs {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
::ng-deep .author-wrapper .p-tabpanel-active {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.loading-state {
|
||||
@@ -147,6 +163,10 @@
|
||||
}
|
||||
|
||||
.books-section {
|
||||
display: flex;
|
||||
flex: 1 1 auto;
|
||||
flex-direction: column;
|
||||
min-height: 0;
|
||||
padding: 0 0.5rem;
|
||||
}
|
||||
|
||||
@@ -158,8 +178,9 @@
|
||||
}
|
||||
|
||||
.author-books-scroller {
|
||||
flex: 1 1 auto;
|
||||
width: 100%;
|
||||
height: calc(100dvh - 22rem);
|
||||
min-height: 0;
|
||||
box-sizing: border-box;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1;
|
||||
min-height: calc(100dvh - 11rem);
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.editor-container {
|
||||
|
||||
Reference in New Issue
Block a user