Revert "feat: switch to grid layout"

This reverts commit 969abeec9d.
This commit is contained in:
Xyphyn committed 2023-09-22 16:29:57 -07:00
1 parent 757a15299d
commit 22357e15b5
12 files changed
+24 -104

No files matched your search

+11 -32
View File
@@ -13,7 +13,6 @@
import { ToastContainer } from 'mono-svelte'
import { onMount } from 'svelte'
import { browser } from '$app/environment'
import Gradient from '$lib/components/ui/Gradient.svelte'
nProgress.configure({
minimum: 0.4,
@@ -56,7 +55,8 @@
</svelte:head>
<div
class="main-container min-h-screen
class="flex flex-col min-h-screen
font-inter
{$userSettings.font == 'inter'
? 'font-inter'
: $userSettings.font == 'system'
@@ -64,37 +64,16 @@
: 'font-sans'}
"
>
{#if $userSettings.glow}
<Gradient />
{/if}
<Navbar />
<Sidebar class="z-0 w-full min-w-0 sticky" />
<ToastContainer />
<Moderation />
<main
style="grid-area: c;"
class="p-3 sm:p-6 sm:rounded-l-lg max-w-full min-w-0
border-slate-200 dark:border-zinc-900 sm:border-l border-t bg-slate-25 dark:bg-zinc-950
h-full place-self-stretch"
>
<slot />
</main>
<div class="flex flex-row h-full w-full max-w-full flex-1">
<Sidebar />
<main
class="p-3 sm:p-6 min-w-0 w-full flex-[3] sm:rounded-tl-lg
border-slate-200 dark:border-zinc-900 sm:border-l border-t bg-slate-25 dark:bg-zinc-950"
>
<slot />
</main>
</div>
</div>
<style>
.main-container {
display: grid;
grid-template-columns: minmax(min-content, auto) 3fr;
grid-template-areas:
'a a'
'b c';
place-items: start;
}
@media (min-width: 640px) {
.main-container {
grid-template-columns: minmax(auto-fit, 1fr) 1fr;
grid-template-rows: max-content;
}
}
</style>
+1 -1
View File
@@ -34,7 +34,7 @@
</div>
</Modal>
<div class="flex flex-row gap-4 w-full">
<div class="flex flex-row gap-4 w-full h-full">
<div class="flex flex-col gap-4 max-w-full w-full min-w-0">
<header>
<h1
+1 -1
View File
@@ -4,7 +4,7 @@
import MultiSelect from '$lib/components/input/Switch.svelte'
</script>
<div class="flex flex-col gap-4">
<div class="flex flex-col gap-4 h-full">
<MultiSelect
headless
options={[
+1 -1
View File
@@ -9,7 +9,7 @@
<title>Profile</title>
</svelte:head>
<div class="flex flex-col gap-4">
<div class="flex flex-col gap-4 h-full">
<MultiSelect
headless
options={['/profile/user', '/profile/settings', '/profile/blocks']}
-7
View File
@@ -170,13 +170,6 @@
bind:selected={$userSettings.leftAlign}
/>
</Setting>
<Setting>
<span slot="title">Glow</span>
<p slot="description">Show a nice little glow in the top left corner.</p>
<Checkbox bind:checked={$userSettings.glow}>
{$userSettings.glow ? 'Enabled' : 'Disabled'}
</Checkbox>
</Setting>
{#if LINKED_INSTANCE_URL}
<Setting>
<span slot="title">