Fix: enable nested scrolling in filter accordion panel
This commit is contained in:
committed by
Aditya Chandel
parent
116f0c950e
commit
ec7846abf6
+7
-6
@@ -1,4 +1,3 @@
|
|||||||
@if (showFilter) {
|
|
||||||
<div class="h-[calc(100vh-6.1rem)] rounded-xl bg-[var(--card-background)] flex flex-col">
|
<div class="h-[calc(100vh-6.1rem)] rounded-xl bg-[var(--card-background)] flex flex-col">
|
||||||
|
|
||||||
<div class="flex items-center justify-between px-4 py-4">
|
<div class="flex items-center justify-between px-4 py-4">
|
||||||
@@ -13,7 +12,8 @@
|
|||||||
styleClass="h-8"></p-selectButton>
|
styleClass="h-8"></p-selectButton>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex-1 overflow-y-auto pb-4">
|
<!-- Outer scroll -->
|
||||||
|
<div class="flex-1 overflow-y-auto pb-4 pr-1" style="overscroll-behavior: contain;">
|
||||||
<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,9 +28,12 @@
|
|||||||
</span>
|
</span>
|
||||||
</p-accordion-header>
|
</p-accordion-header>
|
||||||
|
|
||||||
<p-accordion-content class="h-[27.5rem]">
|
<p-accordion-content>
|
||||||
@if (filterStreams[filterType] | async; as filters) {
|
@if (filterStreams[filterType] | async; as filters) {
|
||||||
<div>
|
<!-- Inner scrollable content with nested scroll behavior -->
|
||||||
|
<div
|
||||||
|
class="max-h-[27.5rem] overflow-y-auto overscroll-contain pr-1"
|
||||||
|
style="overscroll-behavior: contain;">
|
||||||
@for (filter of filters; track filter) {
|
@for (filter of filters; track filter) {
|
||||||
<div
|
<div
|
||||||
class="cursor-pointer transition-colors duration-200 ease-in-out pb-1 flex items-center gap-2"
|
class="cursor-pointer transition-colors duration-200 ease-in-out pb-1 flex items-center gap-2"
|
||||||
@@ -50,6 +53,4 @@
|
|||||||
}
|
}
|
||||||
</p-accordion>
|
</p-accordion>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user