From 14b2b2a89bd37d9adbfdfaf596a7d40b97d2b3a9 Mon Sep 17 00:00:00 2001 From: Maruf Bepary Date: Mon, 29 Apr 2024 11:10:26 +0100 Subject: [PATCH] Made filter popover less wide --- components/Filters/FilterPanel.tsx | 27 ++++++++++++++------------- components/Filters/FilterPopover.tsx | 8 ++++---- 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/components/Filters/FilterPanel.tsx b/components/Filters/FilterPanel.tsx index 90d77d15..68babed8 100644 --- a/components/Filters/FilterPanel.tsx +++ b/components/Filters/FilterPanel.tsx @@ -94,7 +94,7 @@ const FilterOverlay: React.FC = ({ top-0 right-0 h-full pt-${NAVBAR_HEIGHT} md:px-2 md:pb-3 - w-full md:w-[25rem] + w-full md:w-[24rem] z-20 transform ${ isOpen ? "translate-x-0" : "translate-x-full" @@ -167,16 +167,17 @@ const FilterOverlay: React.FC = ({ " > {/* Clear Button */} - - - + + {/* Archive Toggle */} {archiveFilter.hasArchivedMaterials && ( diff --git a/components/Filters/FilterPopover.tsx b/components/Filters/FilterPopover.tsx index 180ca18c..ac86f9a7 100644 --- a/components/Filters/FilterPopover.tsx +++ b/components/Filters/FilterPopover.tsx @@ -80,7 +80,7 @@ const FilterPopover: React.FC = ({ className=" border border-neutral-300 dark:border-neutral-700 shadow-sm - w-[24rem] md:w-[22rem] + w-full justify-between bg-neutral-100 py-2 h-full" @@ -103,12 +103,12 @@ const FilterPopover: React.FC = ({ - - + + No Filter Found. - + {selectedFilterCategory.options.map((option, i) => (