Fix book count not fitting within the sidebar

This commit is contained in:
aditya.chandel
2025-06-24 14:20:17 -06:00
committed by Aditya Chandel
parent 4bd30abebf
commit 5faeaabd5a
2 changed files with 6 additions and 4 deletions
@@ -29,7 +29,7 @@
[queryParams]="item.queryParams"
[attr.target]="item.target" tabindex="0" pRipple>
<i [ngClass]="item.icon" class="layout-menuitem-icon"></i>
<span class="layout-menuitem-text w-full">
<span class="layout-menuitem-text w-full truncate">
{{ item.label }}
</span>
@if (item.items) {
@@ -50,7 +50,6 @@
[rounded]="true"
[label]="hovered ? '' : (item.bookCount$ | async)?.toString() || ''"
[icon]="hovered ? 'pi pi-ellipsis-v' : ''"
[style.width]="'30px'"
[style.height]="'30px'"
[style.display]="'flex'">
</p-button>
@@ -58,7 +57,7 @@
<p-menu #entitymenu [model]="item.menu" [popup]="true" appendTo="body"></p-menu>
}
@if (item.type === 'Library' && (!admin && !canManipulateLibrary) || item.type === 'All Books' || item.label === 'Unshelved') {
<p class="text-[var(--primary-color)] pr-1">
<p class="text-[var(--primary-color)] pr-3">
{{ (item.bookCount$ | async)?.toString() || '0' }}
</p>
}
@@ -13,7 +13,10 @@
transition: transform variables.$transitionDuration, left variables.$transitionDuration;
background-color: var(--card-background);
border-radius: variables.$borderRadius;
padding: 0.5rem 1.35rem;
padding-top: 0.5rem;
padding-bottom: 0.5rem;
padding-left: 1.35rem;
padding-right: 0.8rem;
box-shadow: 0px 3px 5px rgba(0, 0, 0, .02), 0px 0px 2px rgba(0, 0, 0, .05), 0px 1px 4px rgba(0, 0, 0, .08);
}