Accordion filter panels missing scroll for overflowing content
This commit is contained in:
committed by
Aditya Chandel
parent
480eb92f7d
commit
15970ad1b1
+7
-4
@@ -1,6 +1,5 @@
|
|||||||
@if (showFilter) {
|
@if (showFilter) {
|
||||||
<div
|
<div class="h-[calc(100vh-6.1rem)] rounded-xl bg-[var(--card-background)] flex flex-col">
|
||||||
class="h-[calc(100vh-6.1rem)] rounded-xl bg-[var(--card-background)]">
|
|
||||||
|
|
||||||
<div class="flex items-center justify-between px-4 py-4">
|
<div class="flex items-center justify-between px-4 py-4">
|
||||||
<span class="text font-semibold">Filter Mode</span>
|
<span class="text font-semibold">Filter Mode</span>
|
||||||
@@ -14,6 +13,7 @@
|
|||||||
styleClass="h-8"></p-selectButton>
|
styleClass="h-8"></p-selectButton>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="flex-1 overflow-y-auto pb-4">
|
||||||
<p-accordion [value]="expandedPanels">
|
<p-accordion [value]="expandedPanels">
|
||||||
@for (filterType of filterTypes; track filterType; let i = $index) {
|
@for (filterType of filterTypes; track filterType; let i = $index) {
|
||||||
<p-accordion-panel [value]="i">
|
<p-accordion-panel [value]="i">
|
||||||
@@ -28,11 +28,12 @@
|
|||||||
</span>
|
</span>
|
||||||
</p-accordion-header>
|
</p-accordion-header>
|
||||||
|
|
||||||
<p-accordion-content class="h-[27.5rem] !overflow-y-auto">
|
<p-accordion-content class="h-[27.5rem]">
|
||||||
@if (filterStreams[filterType] | async; as filters) {
|
@if (filterStreams[filterType] | async; as filters) {
|
||||||
<div>
|
<div>
|
||||||
@for (filter of filters; track filter) {
|
@for (filter of filters; track filter) {
|
||||||
<div class="cursor-pointer transition-colors duration-200 ease-in-out pb-1 flex items-center gap-2"
|
<div
|
||||||
|
class="cursor-pointer transition-colors duration-200 ease-in-out pb-1 flex items-center gap-2"
|
||||||
[ngClass]="{
|
[ngClass]="{
|
||||||
'text-[var(--primary-color)]':
|
'text-[var(--primary-color)]':
|
||||||
activeFilters[filterType]?.includes(filter.value?.id || filter.value)
|
activeFilters[filterType]?.includes(filter.value?.id || filter.value)
|
||||||
@@ -49,4 +50,6 @@
|
|||||||
}
|
}
|
||||||
</p-accordion>
|
</p-accordion>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user