Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

themebuilder: fix accordion

ammarahm-edf1650fd38367
diff --git a/apps/web/src/components/accordion/index.tsx b/apps/web/src/components/accordion/index.tsx
index 6b76d5fc4..348b9ea2d 100644
--- a/apps/web/src/components/accordion/index.tsx
+++ b/apps/web/src/components/accordion/index.tsx
@@ -67,7 +67,14 @@ export default function Accordion(
<ChevronUp size={16} color={color} />
)}
</Flex>
- {!isContentHidden && children}
+ <Flex
+ sx={{
+ display: isContentHidden ? "none" : "flex",
+ flexDirection: "column"
+ }}
+ >
+ {children}
+ </Flex>
</Flex>
);
}