mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
add server selector to layout animation
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user