design: improve layout further

This commit is contained in:
Xyphyn committed 2023-07-31 11:31:19 -07:00
1 parent 868deff7f4
commit 850d2b480d
7 files changed
+25 -16

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "photon-lemmy", "name": "photon-lemmy",
"version": "0.4.10", "version": "0.4.11",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "vite dev", "dev": "vite dev",
+2 -2
View File
@@ -34,8 +34,8 @@
dark:bg-black {scrollY > 0 dark:bg-black {scrollY > 0
? 'bg-slate-100/80 dark:bg-black/80' ? 'bg-slate-100/80 dark:bg-black/80'
: ''} backdrop-blur-3xl : ''} backdrop-blur-3xl
w-full mx-auto px-4 py-2 z-50 border-b transition-all w-full mx-auto px-4 py-2 z-50 transition-all
border-slate-200 dark:border-zinc-900 box-border h-16" box-border h-16"
> >
<div class="flex flex-row gap-2 items-center mr-auto"> <div class="flex flex-row gap-2 items-center mr-auto">
<a href="/" class="flex flex-row items-center gap-2"> <a href="/" class="flex flex-row items-center gap-2">
+6
View File
@@ -0,0 +1,6 @@
<nav
class="hidden xl:flex flex-col pl-4 pr-4 py-4 overflow-auto sticky top-16 bottom-0
flex-1 gap-1 max-h-[calc(100vh-4rem)] w-full bg-black"
>
<slot />
</nav>
+3 -4
View File
@@ -1,8 +1,7 @@
<aside <aside
class="sticky top-20 border bg-white border-slate-200 class="sticky top-0 break-words flex
dark:border-zinc-800 dark:bg-zinc-900 break-words flex flex-col gap-4 p-6 w-96 max-h-[calc(100vh-4rem)]
flex-col gap-4 p-6 w-[22rem] rounded-md h-max max-h-[calc(100vh-6rem)] overflow-auto text-sm border-l border-slate-200 dark:border-zinc-800 {$$props.class}"
overflow-auto text-sm {$$props.class}"
> >
<slot /> <slot />
</aside> </aside>
+11 -7
View File
@@ -6,11 +6,11 @@
import 'nprogress/nprogress.css' import 'nprogress/nprogress.css'
import ToastContainer from '$lib/components/ui/toasts/ToastContainer.svelte' import ToastContainer from '$lib/components/ui/toasts/ToastContainer.svelte'
import Moderation from '$lib/components/lemmy/moderation/Moderation.svelte' import Moderation from '$lib/components/lemmy/moderation/Moderation.svelte'
import { userSettings } from '$lib/settings.js'
import { user } from '$lib/lemmy.js' import { user } from '$lib/lemmy.js'
import Button from '$lib/components/input/Button.svelte' import Button from '$lib/components/input/Button.svelte'
import Avatar from '$lib/components/ui/Avatar.svelte' import Avatar from '$lib/components/ui/Avatar.svelte'
import { Home, Icon } from 'svelte-hero-icons' import { Home, Icon } from 'svelte-hero-icons'
import Sidebar from '$lib/components/ui/Sidebar.svelte'
nProgress.configure({ nProgress.configure({
minimum: 0.4, minimum: 0.4,
@@ -39,11 +39,10 @@
<ToastContainer /> <ToastContainer />
<Moderation /> <Moderation />
<div <div
class="flex flex-row w-full max-w-full gap-4 divide-x dark:divide-zinc-800 divide-slate-200" class="flex flex-row w-full max-w-full divide-x dark:divide-zinc-800
> divide-slate-200"
<nav
class="hidden lg:flex flex-col p-4 overflow-auto sticky top-16 bottom-0 flex-1 gap-1 max-h-[calc(100vh-4rem)] w-full"
> >
<Sidebar>
<Button href="/" color="tertiary" alignment="left"> <Button href="/" color="tertiary" alignment="left">
<Icon src={Home} solid size="20" /> <Icon src={Home} solid size="20" />
Frontpage Frontpage
@@ -65,9 +64,14 @@
</Button> </Button>
{/each} {/each}
{/if} {/if}
</nav> </Sidebar>
<main class="p-4 mx-auto flex-[4] min-w-0 w-full"> <div
class="flex-[3] xl:rounded-tl-lg
border-slate-200 dark:border-zinc-900 border-t overflow-auto"
>
<main class="p-4 min-w-0 w-full">
<slot /> <slot />
</main> </main>
</div> </div>
</div> </div>
</div>
+1 -1
View File
@@ -27,7 +27,7 @@
<h1 class="text-3xl font-bold">Frontpage</h1> <h1 class="text-3xl font-bold">Frontpage</h1>
</header> </header>
<div <div
class="flex flex-col sm:flex-row gap-4 max-w-full w-full justify-between flex-wrap" class="flex flex-row gap-4 max-w-full w-full justify-between flex-wrap"
> >
<MultiSelect <MultiSelect
options={['Subscribed', 'Local', 'All']} options={['Subscribed', 'Local', 'All']}
+1 -1
View File
@@ -3,7 +3,7 @@
// @ts-ignore // @ts-ignore
import { build, files } from '$service-worker' import { build, files } from '$service-worker'
const version = '0.4.10' const version = '0.4.11'
const timestamp = new Date().toLocaleString('en') const timestamp = new Date().toLocaleString('en')
const worker = self as unknown as ServiceWorkerGlobalScope const worker = self as unknown as ServiceWorkerGlobalScope
const FILES = `cache${timestamp}` const FILES = `cache${timestamp}`