fix(book-card): indicate collapse series number on the library tooltip (#1800)
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
This commit is contained in:
+19
-12
@@ -4,21 +4,28 @@
|
|||||||
<div class="flex items-center justify-between w-full gap-4 py-2 px-2 md:px-4 rounded-t-xl md:mb-4 mb-2 bg-[var(--card-background)] border-[1px] border-solid border-[var(--p-content-border-color)]">
|
<div class="flex items-center justify-between w-full gap-4 py-2 px-2 md:px-4 rounded-t-xl md:mb-4 mb-2 bg-[var(--card-background)] border-[1px] border-solid border-[var(--p-content-border-color)]">
|
||||||
<div class="flex items-center min-w-0 max-w-full flex-shrink">
|
<div class="flex items-center min-w-0 max-w-full flex-shrink">
|
||||||
@if (entityType$ | async; as entityType) {
|
@if (entityType$ | async; as entityType) {
|
||||||
<p class="text-xl whitespace-nowrap overflow-hidden text-ellipsis w-full">
|
<div class="flex flex-col gap-0.5">
|
||||||
@if (entityType === EntityType.ALL_BOOKS) {
|
<p class="text-xl whitespace-nowrap overflow-hidden text-ellipsis w-full">
|
||||||
@if (currentFilterLabel && rawFilterParamFromUrl) {
|
@if (entityType === EntityType.ALL_BOOKS) {
|
||||||
{{ currentFilterLabel }}
|
@if (currentFilterLabel && rawFilterParamFromUrl) {
|
||||||
} @else if (isFilterActive || hasSearchTerm) {
|
{{ currentFilterLabel }}
|
||||||
{{ computedFilterLabel }}
|
} @else if (isFilterActive || hasSearchTerm) {
|
||||||
|
{{ computedFilterLabel }}
|
||||||
|
} @else {
|
||||||
|
All Books
|
||||||
|
}
|
||||||
|
} @else if (entityType === EntityType.UNSHELVED) {
|
||||||
|
{{ (isFilterActive || hasSearchTerm) ? 'Unshelved Books (Filtered)' : 'Unshelved Books' }}
|
||||||
} @else {
|
} @else {
|
||||||
All Books
|
{{ entityType }}: {{ (entity$ | async)?.name }}{{ (isFilterActive || hasSearchTerm) ? ' (Filtered)' : '' }}
|
||||||
}
|
}
|
||||||
} @else if (entityType === EntityType.UNSHELVED) {
|
</p>
|
||||||
{{ (isFilterActive || hasSearchTerm) ? 'Unshelved Books (Filtered)' : 'Unshelved Books' }}
|
@if (seriesCollapseFilter.isSeriesCollapsed && (bookState$ | async)?.books; as books) {
|
||||||
} @else {
|
<p class="text-sm text-gray-500">
|
||||||
{{ entityType }}: {{ (entity$ | async)?.name }}{{ (isFilterActive || hasSearchTerm) ? ' (Filtered)' : '' }}
|
Showing {{ books.length }} {{ books.length === 1 ? 'item' : 'items' }} (series collapsed)
|
||||||
|
</p>
|
||||||
}
|
}
|
||||||
</p>
|
</div>
|
||||||
|
|
||||||
@if (userService.userState$ | async; as userState) {
|
@if (userService.userState$ | async; as userState) {
|
||||||
@if (entityType !== EntityType.ALL_BOOKS && entityType !== EntityType.UNSHELVED &&
|
@if (entityType !== EntityType.ALL_BOOKS && entityType !== EntityType.UNSHELVED &&
|
||||||
|
|||||||
+2
-2
@@ -27,8 +27,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@if (book.seriesCount && book.seriesCount! >= 1) {
|
@if (book.seriesCount && book.seriesCount! >= 1) {
|
||||||
<div class="series-items-count-overlay">
|
<div class="series-items-count-overlay" [pTooltip]="'Series collapsed: ' + book.seriesCount + ' books'" tooltipPosition="right">
|
||||||
{{ book.seriesCount }}
|
<i class="pi pi-book" style="font-size: 0.65rem; margin-right: 2px;"></i>{{ book.seriesCount }}
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+8
-4
@@ -165,14 +165,18 @@
|
|||||||
background-color: var(--primary-color);
|
background-color: var(--primary-color);
|
||||||
color: var(--primary-text-color-dark);
|
color: var(--primary-text-color-dark);
|
||||||
font-size: 0.75rem;
|
font-size: 0.75rem;
|
||||||
padding: 1px 6px;
|
padding: 3px 8px;
|
||||||
border-radius: 3px;
|
border-radius: 4px;
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
font-weight: 600;
|
font-weight: 700;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.read-status-indicator {
|
.read-status-indicator {
|
||||||
|
|||||||
Reference in New Issue
Block a user