🩹 (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:
@@ -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={
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user