misc: add option to span whole screen

This commit is contained in:
Xyphyn committed 2023-07-30 14:56:35 -07:00
1 parent 45296b60d2
commit cfbf0570d3
5 files changed
+18 -4

No files matched your search

+6 -1
View File
@@ -6,6 +6,7 @@
import 'nprogress/nprogress.css'
import ToastContainer from '$lib/components/ui/toasts/ToastContainer.svelte'
import Moderation from '$lib/components/lemmy/moderation/Moderation.svelte'
import { userSettings } from '$lib/settings.js'
nProgress.configure({
minimum: 0.4,
@@ -32,7 +33,11 @@
<Navbar />
<ToastContainer />
<Moderation />
<div class="flex flex-row w-full mx-auto max-w-6xl">
<div
class="flex flex-row w-full mx-auto"
class:max-w-full={$userSettings.fullWidthLayout}
class:max-w-5xl={!$userSettings.fullWidthLayout}
>
<main class="p-4 flex-[3] max-w-full">
<slot />
</main>
+7
View File
@@ -100,6 +100,13 @@
</div>
</div>
</Setting>
<Setting>
<span slot="title">Full-width layout</span>
<span slot="description">
(Not recommended) make the layout span the whole screen.
</span>
<Switch bind:enabled={$userSettings.fullWidthLayout} />
</Setting>
<h2 class="uppercase font-bold opacity-80 text-sm mt-4">UI</h2>
<Setting>
<span slot="title">Mark read posts</span>