feat: use list view by default

This commit is contained in:
Xyphyn committed 2023-09-04 11:37:43 -07:00
1 parent c53ec52d86
commit 54a9d1b346
5 files changed
+29 -10

No files matched your search

+6 -2
View File
@@ -9,6 +9,7 @@
import { Button, Modal, Select, Spinner } from 'mono-svelte'
import { GlobeAmericas, Icon } from 'svelte-hero-icons'
import { profile } from '$lib/auth.js'
import ViewSelect from '$lib/components/lemmy/ViewSelect.svelte'
export let data
@@ -37,7 +38,7 @@
<Button on:click={() => (sidebar = !sidebar)}>About</Button>
</div>
<div
class="flex flex-row gap-4 max-w-full w-full justify-between flex-wrap"
class="flex flex-row gap-4 max-w-full justify-between w-full flex-wrap"
>
<Select
bind:value={data.listingType}
@@ -53,7 +54,10 @@
<option value="Local">Local</option>
<option value="Subscribed" disabled={!$profile?.jwt}>Subscribed</option>
</Select>
<Sort selected={data.sort} />
<div class="flex gap-4 flex-wrap">
<Sort selected={data.sort} />
<ViewSelect />
</div>
</div>
<section class="flex flex-col gap-3 sm:gap-4 h-full">
<PostFeed posts={data.posts.posts} />
+2 -5
View File
@@ -15,6 +15,7 @@
import MarkdownEditor from '$lib/components/markdown/MarkdownEditor.svelte'
import { removalTemplate } from '$lib/components/lemmy/moderation/moderation.js'
import { Button, Checkbox, Select } from 'mono-svelte'
import ViewSelect from '$lib/components/lemmy/ViewSelect.svelte'
let data = {
loading: false,
@@ -130,11 +131,7 @@
</Setting>
<Setting>
<span slot="title">Post style</span>
<MultiSelect
options={[false, true]}
optionNames={['Cards', 'Compact']}
bind:selected={$userSettings.showCompactPosts}
/>
<ViewSelect />
</Setting>
<Setting>
<Checkbox bind:checked={$userSettings.nsfwBlur} slot="title">