diff --git a/web/src/components/sidebar/CobaltLogo.svelte b/web/src/components/sidebar/CobaltLogo.svelte index 26d58efb..aa269f20 100644 --- a/web/src/components/sidebar/CobaltLogo.svelte +++ b/web/src/components/sidebar/CobaltLogo.svelte @@ -12,4 +12,9 @@ align-items: center; padding: calc(var(--sidebar-padding) * 2 - 2px); } + @media screen and (max-width: 535px) { + #cobalt-logo { + display: none; + } + } diff --git a/web/src/components/sidebar/Sidebar.svelte b/web/src/components/sidebar/Sidebar.svelte index 368eaac0..43b4cf58 100644 --- a/web/src/components/sidebar/Sidebar.svelte +++ b/web/src/components/sidebar/Sidebar.svelte @@ -72,4 +72,39 @@ padding-bottom: var(--sidebar-padding); overflow: scroll; } + + @media screen and (max-width: 535px) { + #sidebar, + #sidebar-tabs, + .sidebar-inner-container { + flex-direction: row; + } + #sidebar { + width: 100%; + height: auto; + overflow: scroll; + position: fixed; + bottom: 0; + } + #sidebar::before { + content: ''; + z-index: 1; + width: 100%; + height: 100%; + display: block; + position: absolute; + pointer-events: none; + background: linear-gradient(90deg, + rgba(0, 0, 0, 0.9) 0%, + rgba(0, 0, 0, 0) 4%, + rgba(0, 0, 0, 0) 50%, + rgba(0, 0, 0, 0) 96%, + rgba(0, 0, 0, 0.9) 100% + ); + } + #sidebar-tabs { + justify-content: space-around; + padding-bottom: 0; + } + } diff --git a/web/src/components/sidebar/SidebarTab.svelte b/web/src/components/sidebar/SidebarTab.svelte index 27676df0..cd86711e 100644 --- a/web/src/components/sidebar/SidebarTab.svelte +++ b/web/src/components/sidebar/SidebarTab.svelte @@ -39,4 +39,14 @@ .sidebar-tab:hover { opacity: 1; } + + @media screen and (max-width: 535px) { + .sidebar-tab { + padding: 5px var(--sidebar-padding); + min-width: calc(var(--sidebar-width) / 2); + } + .sidebar-tab.active { + z-index: 2; + } + } diff --git a/web/src/routes/+layout.svelte b/web/src/routes/+layout.svelte index f91c7a01..56bed2d2 100644 --- a/web/src/routes/+layout.svelte +++ b/web/src/routes/+layout.svelte @@ -42,4 +42,14 @@ display: flex; overflow: scroll; } + @media screen and (max-width: 535px) { + #cobalt { + display: grid; + grid-template-columns: unset; + grid-template-rows: 1fr var(--sidebar-width); + } + #content { + order: -1; + } + }