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

View File

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