feat: use list view by default
This commit is contained in:
1 parent
c53ec52d86
commit
54a9d1b346
5 files changed
+29
-10
No files matched your search
@@ -0,0 +1,18 @@
|
||||
<script lang="ts">
|
||||
import { userSettings } from '$lib/settings.js'
|
||||
import { Select } from 'mono-svelte'
|
||||
import { Icon, ViewColumns } from 'svelte-hero-icons'
|
||||
|
||||
let value = `${$userSettings.showCompactPosts}`
|
||||
|
||||
$: $userSettings.showCompactPosts = value == 'true'
|
||||
</script>
|
||||
|
||||
<Select bind:value>
|
||||
<span slot="label" class="flex items-center gap-1">
|
||||
<Icon src={ViewColumns} size="14" mini />
|
||||
View
|
||||
</span>
|
||||
<option value="true">List</option>
|
||||
<option value="false">Cards</option>
|
||||
</Select>
|
||||
@@ -111,14 +111,14 @@
|
||||
<Menu
|
||||
alignment="bottom-right"
|
||||
containerClass="overflow-auto max-h-[400px]"
|
||||
class="h-full max-h-screen"
|
||||
itemsClass="!h-full"
|
||||
>
|
||||
<Button
|
||||
let:toggleOpen
|
||||
slot="button"
|
||||
aria-label="Post actions"
|
||||
on:click={toggleOpen}
|
||||
class="hover:text-inherit"
|
||||
class="hover:text-inherit h-8"
|
||||
size="square-md"
|
||||
>
|
||||
<Icon slot="prefix" src={EllipsisHorizontal} width={16} mini />
|
||||
|
||||
+1
-1
@@ -66,7 +66,7 @@ export const defaultSettings: Settings = {
|
||||
community: toBool(env.PUBLIC_SHOW_INSTANCES_COMMUNITY) ?? true,
|
||||
comments: toBool(env.PUBLIC_SHOW_INSTANCES_COMMENTS) ?? false,
|
||||
},
|
||||
showCompactPosts: toBool(env.PUBLIC_SHOW_COMPACT_POSTS) ?? false,
|
||||
showCompactPosts: toBool(env.PUBLIC_SHOW_COMPACT_POSTS) ?? true,
|
||||
defaultSort: {
|
||||
sort: env.PUBLIC_DEFAULT_FEED_SORT ?? ('Active' as any),
|
||||
feed: env.PUBLIC_DEFAULT_FEED ?? ('Local' as any),
|
||||
|
||||
Reference in new issue
Block a user