fix: remove dividers and add gap in card view
This commit is contained in:
1 parent
3191bd23e5
commit
e0aafca7b3
4 files changed
+11
-23
No files matched your search
@@ -14,6 +14,7 @@
|
||||
isPostView,
|
||||
isUser,
|
||||
} from '$lib/lemmy/item.js'
|
||||
import { userSettings } from '$lib/settings.js'
|
||||
import { searchParam } from '$lib/util.js'
|
||||
import type {
|
||||
CommentView,
|
||||
@@ -119,7 +120,9 @@
|
||||
{/if}
|
||||
{/await}
|
||||
<div
|
||||
class="flex flex-col mt-4 !divide-y divide-slate-200 dark:divide-zinc-800"
|
||||
class="flex flex-col mt-4 divide-slate-200 dark:divide-zinc-800"
|
||||
class:!divide-y={$userSettings.view != 'card'}
|
||||
class:gap-4={$userSettings.view == 'card'}
|
||||
>
|
||||
{#each data.results as result}
|
||||
{#if isPostView(result)}
|
||||
|
||||
@@ -24,7 +24,7 @@ export async function load({ url, fetch }) {
|
||||
q: query,
|
||||
auth: get(profile)?.jwt,
|
||||
community_id: community ?? undefined,
|
||||
limit: 40,
|
||||
limit: 20,
|
||||
page: page,
|
||||
sort: (sort as SortType) || 'New',
|
||||
listing_type: 'All',
|
||||
|
||||
Reference in new issue
Block a user