fix slide panel
This commit is contained in:
@@ -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"
|
||||||
/>
|
/>
|
||||||
<panelConfig.Component
|
<ScrollArea.Autosize w="100%" p={0} offsetScrollbars>
|
||||||
value={tempValue}
|
<panelConfig.Component
|
||||||
onChange={setTempValue}
|
value={tempValue}
|
||||||
{...(panelConfig.componentProps || {})}
|
onChange={setTempValue}
|
||||||
/>
|
{...(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>
|
||||||
</>
|
</>
|
||||||
|
|||||||
Reference in New Issue
Block a user