mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
prevent sidebar item conflict with server selector
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
.sidebar-container {
|
.sidebar-container {
|
||||||
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@@ -11,15 +12,11 @@
|
|||||||
max-height: calc(100vh - 149px);
|
max-height: calc(100vh - 149px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-container {
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
.server-selector-container {
|
.server-selector-container {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
@@ -35,3 +32,7 @@
|
|||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
border-radius: var(--theme-radius-md);
|
border-radius: var(--theme-radius-md);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.scroll-area-with-server {
|
||||||
|
padding-bottom: calc(2rem + 2 * var(--theme-spacing-md));
|
||||||
|
}
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ export const CollapsedSidebar = () => {
|
|||||||
[styles.web]: windowBarStyle === Platform.WEB,
|
[styles.web]: windowBarStyle === Platform.WEB,
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
<ScrollArea>
|
<ScrollArea className={currentServer ? styles.scrollAreaWithServer : undefined}>
|
||||||
{sidebarCollapsedNavigation && (
|
{sidebarCollapsedNavigation && (
|
||||||
<Group gap={0} grow>
|
<Group gap={0} grow>
|
||||||
<CollapsedSidebarButton onClick={() => navigate(-1)}>
|
<CollapsedSidebarButton onClick={() => navigate(-1)}>
|
||||||
|
|||||||
Reference in New Issue
Block a user