design: improve placeholders

This commit is contained in:
James Xylight committed 2025-08-21 21:28:10 -07:00
1 parent ea019da578
commit 148436d3b8
4 files changed
+8 -7

No files matched your search

@@ -173,7 +173,7 @@
<ul class="flex flex-col list-none" bind:this={listEl}>
{#key posts}
{#if posts?.length == 0}
<div class="h-full grid place-items-center">
<div class="h-full grid place-items-center my-8">
<Placeholder
icon={ArchiveBox}
title={$t('routes.frontpage.empty.title')}
+1 -1
View File
@@ -24,7 +24,7 @@
<div class="flex flex-col gap-2 items-center max-w-sm">
{#if icon}
<div
class="bg-slate-100 dark:bg-zinc-900 p-3 rounded-xl text-primary-900 dark:text-primary-100"
class="bg-slate-100 dark:bg-zinc-900 p-3 rounded-2xl text-primary-900 dark:text-primary-100"
>
<Icon src={icon} size="28" solid />
</div>
+1 -1
View File
@@ -272,7 +272,7 @@
"noResults": {
"title": "No results",
"description": "There are no results that match that filter. Try refining your search.",
"alt": "Search across the fediverse"
"alt": "Search for anything across the fediverse."
},
"top": "Top results",
"other": "Other results"
+5 -4
View File
@@ -26,6 +26,7 @@
import {
AdjustmentsHorizontal,
ChevronDoubleDown,
GlobeAmericas,
Icon,
MagnifyingGlass,
} from 'svelte-hero-icons'
@@ -127,11 +128,11 @@
{:else}
<div class="my-auto">
<Placeholder
icon={MagnifyingGlass}
icon={data.results ? MagnifyingGlass : GlobeAmericas}
title={$t('routes.search.noResults.title')}
description={data.filters.value.query == ''
? $t('routes.search.noResults.alt')
: $t('routes.search.noResults.description')}
description={data.results
? $t('routes.search.noResults.description')
: $t('routes.search.noResults.alt')}
/>
</div>
{/if}