feat: add left-align option, close #145

This commit is contained in:
Xyphyn committed 2023-09-17 15:01:04 -07:00
1 parent ae09c5ab92
commit 3191bd23e5
4 files changed
+19 -2

No files matched your search

+5 -1
View File
@@ -52,7 +52,11 @@
transition-all rounded-xl group-hover:bg-slate-50 group-hover:dark:bg-zinc-900"
/>
{/if} -->
<div class="flex flex-row gap-2 max-w-full w-full">
<div
class="flex {$userSettings.leftAlign
? 'flex-row-reverse'
: 'flex-row'} gap-4 max-w-full w-full"
>
<div class="flex flex-col w-full gap-2">
<div class="flex flex-col w-full gap-2">
<PostMeta
+2
View File
@@ -59,6 +59,7 @@ interface Settings {
expandImages: boolean
font: 'inter' | 'system' | 'browser'
leftAlign: boolean
}
export const defaultSettings: Settings = {
@@ -97,6 +98,7 @@ export const defaultSettings: Settings = {
expandImages: true,
view: 'list',
font: 'system',
leftAlign: false,
}
export const userSettings = writable(defaultSettings)