2
0

🩹 (theme) Remove default opened accordion in Theme

It's causing the Template section to have strange behavior when it's height is changing
This commit is contained in:
Baptiste Arnaud
2023-03-28 15:26:51 +02:00
parent 94aadc8361
commit 14d7ebd58c
2 changed files with 3 additions and 3 deletions

View File

@@ -57,7 +57,7 @@ export const ThemeSideMenu = () => {
<Heading fontSize="xl" textAlign="center"> <Heading fontSize="xl" textAlign="center">
Customize the theme Customize the theme
</Heading> </Heading>
<Accordion allowMultiple defaultIndex={[0]}> <Accordion allowMultiple>
<AccordionItem> <AccordionItem>
<AccordionButton py={6}> <AccordionButton py={6}>
<HStack flex="1" pl={2}> <HStack flex="1" pl={2}>
@@ -70,7 +70,7 @@ export const ThemeSideMenu = () => {
</HStack> </HStack>
<AccordionIcon /> <AccordionIcon />
</AccordionButton> </AccordionButton>
<AccordionPanel pb={4}> <AccordionPanel pb={12}>
{typebot && ( {typebot && (
<ThemeTemplates <ThemeTemplates
selectedTemplateId={ selectedTemplateId={

View File

@@ -24,7 +24,7 @@ export const ThemeTemplates = ({
const [selectedTab, setSelectedTab] = useState<Tab>('my-templates') const [selectedTab, setSelectedTab] = useState<Tab>('my-templates')
return ( return (
<Stack spacing={4} pb={12}> <Stack spacing={4}>
<HStack> <HStack>
<Button <Button
flex="1" flex="1"