From 930ce2b0eb8f206b3eecb7ecedae70466de5198f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tadeusz=20Miesi=C4=85c?= <tadeusz.miesiac@gmail.com> Date: Wed, 25 Oct 2023 21:46:56 +0800 Subject: [PATCH] fix(submaps drawer): fixed height of component --- src/components/Map/Drawer/SubmapsDrawer/SubmapsDrawer.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Map/Drawer/SubmapsDrawer/SubmapsDrawer.tsx b/src/components/Map/Drawer/SubmapsDrawer/SubmapsDrawer.tsx index c5283a76..35af92d1 100644 --- a/src/components/Map/Drawer/SubmapsDrawer/SubmapsDrawer.tsx +++ b/src/components/Map/Drawer/SubmapsDrawer/SubmapsDrawer.tsx @@ -7,9 +7,9 @@ export const SubmapsDrawer = (): JSX.Element => { const models = useAppSelector(modelsDataSelector); return ( - <div data-testid="submap-drawer"> + <div data-testid="submap-drawer" className="h-full max-h-full"> <DrawerHeading title="Submaps" /> - <ul className="overflow-y-auto px-6"> + <ul className="h-[calc(100%-93px)] max-h-[calc(100%-93px)] overflow-y-auto px-6"> {models.map(model => ( <SubmpamItem key={model.idObject} modelName={model.name} /> ))} -- GitLab