From 5b4cb1397f5615ea6d14724535332eeb2d951817 Mon Sep 17 00:00:00 2001 From: Siddharth Kshetrapal Date: Thu, 21 Dec 2023 17:17:25 +0100 Subject: [PATCH] allow fit-content height --- src/drafts/SelectPanel2/SelectPanel.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drafts/SelectPanel2/SelectPanel.tsx b/src/drafts/SelectPanel2/SelectPanel.tsx index 8c5ed602d75..d0b2fb32762 100644 --- a/src/drafts/SelectPanel2/SelectPanel.tsx +++ b/src/drafts/SelectPanel2/SelectPanel.tsx @@ -58,7 +58,7 @@ export type SelectPanelProps = { // TODO: move these to SelectPanel.Overlay or overlayProps width?: OverlayProps['width'] - height?: OverlayProps['height'] + height?: OverlayProps['height'] | 'fit-content' children: React.ReactNode } @@ -190,7 +190,7 @@ const Panel: React.FC = ({ return ( <> {Anchor} - + {/* @ts-ignore TODO: StyledOverlay does not like height:fit-content */}