mirror of
https://github.com/adityachandelgit/BookLore.git
synced 2026-01-05 20:40:10 -06:00
feat: Row alignment, badge to right (#1122)
* row alignment, badge to right * unnecessary css
This commit is contained in:
@@ -34,13 +34,14 @@
|
||||
style="overscroll-behavior: contain;">
|
||||
@for (filter of filters; track trackByFilter(j, filter); let j = $index) {
|
||||
<div
|
||||
class="cursor-pointer transition-colors duration-200 ease-in-out pb-1 flex items-center gap-2"
|
||||
class="filter-row cursor-pointer transition-colors duration-200 ease-in-out pb-1 flex flex-row items-center justify-between gap-2"
|
||||
[ngClass]="{
|
||||
'text-[var(--primary-color)]': activeFilters[filterType]?.includes(filter.value?.id || filter.value)
|
||||
}"
|
||||
(click)="handleFilterClick(filterType, filter.value?.id || filter.value)">
|
||||
<p-badge [value]="filter.bookCount"></p-badge>
|
||||
{{ filter.value.name || filter.value }}
|
||||
<p-badge class="filter-value-badge" [value]="filter.bookCount"></p-badge>
|
||||
<!-- <p class="text-[var(--primary-color)]"> {{ filter.bookCount }}</p> -->
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
:host ::ng-deep p-accordion-header {
|
||||
--p-accordion-header-padding: 0.6rem 1rem;
|
||||
}
|
||||
|
||||
.filter-row{
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
p-badge.filter-value-badge {
|
||||
border-radius: 6px !important; /* Makes the badge square */
|
||||
}
|
||||
Reference in New Issue
Block a user