fix(ui): filter sidebar width narrow bug + UI polish (#1470)
This commit is contained in:
@@ -233,6 +233,8 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="book-browser-body">
|
||||
<div class="book-browser-content">
|
||||
@if (booksError()) {
|
||||
<div class="no-books-container">
|
||||
<p class="no-books-text">
|
||||
@@ -250,7 +252,6 @@
|
||||
</p>
|
||||
</div>
|
||||
} @else {
|
||||
<div class="book-browser-content">
|
||||
@let visibleBooks = books();
|
||||
@if (visibleBooks.length === 0 && !showBooksLoadingPlaceholder()) {
|
||||
<div class="no-books-container">
|
||||
@@ -429,7 +430,6 @@
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
@@ -452,6 +452,8 @@
|
||||
(filterSelected)="onFilterSelected($event)"
|
||||
(filterModeChanged)="onFilterModeChanged($event)">
|
||||
</app-book-filter>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</ng-container>
|
||||
|
||||
+22
-10
@@ -2,7 +2,7 @@
|
||||
.book-browser-container {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
@@ -12,16 +12,25 @@
|
||||
.book-browser-main {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1 1 0;
|
||||
flex: 1 1 auto;
|
||||
min-width: 0;
|
||||
width: 100%;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.book-browser-body {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex: 1 1 auto;
|
||||
flex-direction: row;
|
||||
min-width: 0;
|
||||
width: auto;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.book-browser-content {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex: 1 1 auto;
|
||||
flex: 1 1 0;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
@@ -35,6 +44,7 @@
|
||||
gap: 0.25rem;
|
||||
padding: 0.35rem;
|
||||
margin-right: 2px;
|
||||
flex-shrink: 0;
|
||||
background-color: var(--card-background);
|
||||
border-bottom: 1px solid var(--p-content-border-color);
|
||||
|
||||
@@ -464,16 +474,18 @@
|
||||
}
|
||||
|
||||
.filter-overlay-container {
|
||||
--book-filter-sidebar-width: 225px;
|
||||
|
||||
flex-shrink: 0;
|
||||
z-index: 50;
|
||||
|
||||
@media (width <= 991px) {
|
||||
width: var(--sidebar-width, 225px);
|
||||
position: fixed;
|
||||
top: 3.85rem;
|
||||
width: var(--book-filter-sidebar-width);
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
height: calc(100% - 3.85rem);
|
||||
height: 100%;
|
||||
background-color: var(--card-background);
|
||||
box-shadow: -2px 0 10px rgb(0 0 0 / 15%);
|
||||
transform: translateX(100%);
|
||||
@@ -499,10 +511,10 @@
|
||||
}
|
||||
|
||||
&.active {
|
||||
width: var(--sidebar-width, 225px);
|
||||
width: var(--book-filter-sidebar-width);
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
margin-left: 1rem;
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+3
-3
@@ -16,18 +16,18 @@
|
||||
}
|
||||
|
||||
:host ::ng-deep .cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper {
|
||||
width: calc(var(--sidebar-width, 225px) - 35px) !important;
|
||||
width: calc(var(--book-filter-sidebar-width, 225px) - 35px) !important;
|
||||
min-width: unset;
|
||||
}
|
||||
|
||||
.book-filter-container {
|
||||
height: 100%;
|
||||
border-radius: 0.75rem;
|
||||
border-radius: 0;
|
||||
overflow: hidden;
|
||||
background: var(--card-background);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
border: 1px solid var(--p-content-border-color);
|
||||
border-left: 1px solid var(--p-content-border-color);
|
||||
}
|
||||
|
||||
.filter-header {
|
||||
|
||||
Reference in New Issue
Block a user