add server selector to layout animation

This commit is contained in:
jeffvli
2025-11-17 13:14:58 -08:00
parent 9113756923
commit 5892d62391
2 changed files with 8 additions and 2 deletions
@@ -79,3 +79,9 @@
.accordion-content:last-child { .accordion-content:last-child {
padding-bottom: var(--theme-spacing-md); padding-bottom: var(--theme-spacing-md);
} }
.server-selector-wrapper {
position: relative;
z-index: 1;
flex-shrink: 0;
}
@@ -163,9 +163,9 @@ export const Sidebar = () => {
)} )}
</Accordion> </Accordion>
</ScrollArea> </ScrollArea>
<div style={{ flexShrink: 0, position: 'relative', zIndex: 1 }}> <motion.div className={styles.serverSelectorWrapper} layout>
<ServerSelector showImage={showImage} /> <ServerSelector showImage={showImage} />
</div> </motion.div>
<AnimatePresence initial={false} mode="popLayout"> <AnimatePresence initial={false} mode="popLayout">
{showImage && ( {showImage && (
<motion.div <motion.div