feat: add left-align option, close #145
This commit is contained in:
1 parent
ae09c5ab92
commit
3191bd23e5
4 files changed
+19
-2
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "photon-lemmy",
|
"name": "photon-lemmy",
|
||||||
"version": "1.8.0",
|
"version": "1.8.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite dev",
|
"dev": "vite dev",
|
||||||
|
|||||||
@@ -52,7 +52,11 @@
|
|||||||
transition-all rounded-xl group-hover:bg-slate-50 group-hover:dark:bg-zinc-900"
|
transition-all rounded-xl group-hover:bg-slate-50 group-hover:dark:bg-zinc-900"
|
||||||
/>
|
/>
|
||||||
{/if} -->
|
{/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">
|
||||||
<div class="flex flex-col w-full gap-2">
|
<div class="flex flex-col w-full gap-2">
|
||||||
<PostMeta
|
<PostMeta
|
||||||
|
|||||||
@@ -59,6 +59,7 @@ interface Settings {
|
|||||||
expandImages: boolean
|
expandImages: boolean
|
||||||
|
|
||||||
font: 'inter' | 'system' | 'browser'
|
font: 'inter' | 'system' | 'browser'
|
||||||
|
leftAlign: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export const defaultSettings: Settings = {
|
export const defaultSettings: Settings = {
|
||||||
@@ -97,6 +98,7 @@ export const defaultSettings: Settings = {
|
|||||||
expandImages: true,
|
expandImages: true,
|
||||||
view: 'list',
|
view: 'list',
|
||||||
font: 'system',
|
font: 'system',
|
||||||
|
leftAlign: false,
|
||||||
}
|
}
|
||||||
|
|
||||||
export const userSettings = writable(defaultSettings)
|
export const userSettings = writable(defaultSettings)
|
||||||
|
|||||||
@@ -158,6 +158,17 @@
|
|||||||
</Checkbox>
|
</Checkbox>
|
||||||
</div>
|
</div>
|
||||||
</Setting>
|
</Setting>
|
||||||
|
<Setting>
|
||||||
|
<span slot="title">Thumbnail Alignment</span>
|
||||||
|
<span slot="description">
|
||||||
|
Where thumbnails should be on the post in list/compact view.
|
||||||
|
</span>
|
||||||
|
<MultiSelect
|
||||||
|
options={[true, false]}
|
||||||
|
optionNames={['Left', 'Right']}
|
||||||
|
bind:selected={$userSettings.leftAlign}
|
||||||
|
/>
|
||||||
|
</Setting>
|
||||||
|
|
||||||
<SectionTitle class="mt-4">Instances</SectionTitle>
|
<SectionTitle class="mt-4">Instances</SectionTitle>
|
||||||
<Setting>
|
<Setting>
|
||||||
|
|||||||
Reference in new issue
Block a user