design: improve commonlist contrast
This commit is contained in:
10 files changed
+98
-26
No files matched your search
@@ -151,7 +151,7 @@ items-center px-2 w-max top-6 lg:top-22"
|
||||
class="self-center justify-self-center my-auto"
|
||||
/>
|
||||
{:else}
|
||||
<CommonList items={data.inbox.value}>
|
||||
<CommonList items={data.inbox.value} size="md">
|
||||
{#snippet item(item)}
|
||||
<InboxItem {item} />
|
||||
{/snippet}
|
||||
|
||||
@@ -133,7 +133,7 @@
|
||||
</div>
|
||||
<ProgressBar progress={batch.progress} />
|
||||
{#if data.items?.value && data.items?.value.length > 0}
|
||||
<CommonList items={data.items?.value}>
|
||||
<CommonList items={data.items?.value} size="lg">
|
||||
{#snippet item(item)}
|
||||
<Material
|
||||
rounding={item.length == 1 ? 'none' : '2xl'}
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
description="Save posts or comments, and they'll be here to refer to them later."
|
||||
/>
|
||||
{:else}
|
||||
<CommonList items={data.data}>
|
||||
<CommonList items={data.data} size="lg">
|
||||
{#snippet item(item)}
|
||||
{#if isComment(item)}
|
||||
<CommentItem comment={item} />
|
||||
|
||||
@@ -6,10 +6,12 @@
|
||||
import CommunityItem from '$lib/components/lemmy/community/CommunityItem.svelte'
|
||||
import Sort from '$lib/components/lemmy/dropdowns/Sort.svelte'
|
||||
import Post from '$lib/components/lemmy/post/Post.svelte'
|
||||
import PostItem from '$lib/components/lemmy/post/PostItem.svelte'
|
||||
import UserItem from '$lib/components/lemmy/user/UserItem.svelte'
|
||||
import Pageination from '$lib/components/ui/Pageination.svelte'
|
||||
import Placeholder from '$lib/components/ui/Placeholder.svelte'
|
||||
import Skeleton from '$lib/components/ui/generic/Skeleton.svelte'
|
||||
import CommonList from '$lib/components/ui/layout/CommonList.svelte'
|
||||
import Header from '$lib/components/ui/layout/pages/Header.svelte'
|
||||
import { t } from '$lib/i18n/translations.js'
|
||||
import {
|
||||
@@ -30,8 +32,6 @@
|
||||
import { expoOut } from 'svelte/easing'
|
||||
import { fly, slide } from 'svelte/transition'
|
||||
import SearchBar from './SearchBar.svelte'
|
||||
import CommonList from '$lib/components/ui/layout/CommonList.svelte'
|
||||
import PostItem from '$lib/components/lemmy/post/PostItem.svelte'
|
||||
|
||||
let { data } = $props()
|
||||
|
||||
@@ -165,7 +165,7 @@
|
||||
</div>
|
||||
{/if}
|
||||
{/await}
|
||||
<CommonList items={data.results.value}>
|
||||
<CommonList items={data.results.value} animate size="lg">
|
||||
{#snippet item(result)}
|
||||
{#if isPostView(result)}
|
||||
<PostItem post={result} />
|
||||
|
||||
@@ -79,8 +79,8 @@
|
||||
<Icon
|
||||
src={icon}
|
||||
size="32"
|
||||
class="bg-red-200/20 dark:bg-red-800/20 p-1.5 rounded-lg color
|
||||
text-red-500 dark:text-red-400 float-left mr-2 clear-both"
|
||||
class="bg-red-200/20 dark:bg-red-600/20 p-1.5 rounded-lg color
|
||||
text-red-500 dark:text-red-300 float-left mr-2 clear-both"
|
||||
style="grid-area: icon;"
|
||||
/>
|
||||
{/if}
|
||||
|
||||
@@ -77,8 +77,8 @@
|
||||
<Icon
|
||||
src={icon}
|
||||
size="32"
|
||||
class="bg-red-200/20 dark:bg-red-800/20 p-1.5 self-center
|
||||
rounded-lg color text-red-500 dark:text-red-400"
|
||||
class="bg-red-200/20 dark:bg-red-600/20 p-1.5 self-center
|
||||
rounded-lg color text-red-500 dark:text-red-300"
|
||||
/>
|
||||
{/if}
|
||||
<Switch
|
||||
|
||||
Reference in new issue
Block a user