fix slide panel

This commit is contained in:
yohlo
2025-10-03 02:47:52 -05:00
parent fafe5ca3ec
commit 2e6d3366e4

View File

@@ -69,6 +69,7 @@ const SlidePanel = ({
overflow: "hidden", overflow: "hidden",
display: "flex", display: "flex",
flexDirection: "column", flexDirection: "column",
width: "100%",
}} }}
> >
<Box <Box
@@ -167,11 +168,13 @@ const SlidePanel = ({
bg="var(--mantine-color-dimmed)" bg="var(--mantine-color-dimmed)"
my="xs" my="xs"
/> />
<ScrollArea.Autosize w="100%" p={0} offsetScrollbars>
<panelConfig.Component <panelConfig.Component
value={tempValue} value={tempValue}
onChange={setTempValue} onChange={setTempValue}
{...(panelConfig.componentProps || {})} {...(panelConfig.componentProps || {})}
/> />
</ScrollArea.Autosize>
<Button mt="md" onClick={handleConfirm}>Confirm</Button> <Button mt="md" onClick={handleConfirm}>Confirm</Button>
<Button variant="subtle" onClick={closePanel} mt="sm" color="red">Cancel</Button> <Button variant="subtle" onClick={closePanel} mt="sm" color="red">Cancel</Button>
</> </>