FilesBlock: compact single-row layout
Reduce padding, smaller icon, filename + ext/size on one line. Description hidden on mobile, truncated on desktop. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -116,26 +116,22 @@
|
|||||||
{#if resolved.length === 0}
|
{#if resolved.length === 0}
|
||||||
<p class="text-sm text-stein-500">Keine Dateien verfügbar.</p>
|
<p class="text-sm text-stein-500">Keine Dateien verfügbar.</p>
|
||||||
{:else}
|
{:else}
|
||||||
<ul class="flex flex-col gap-2 list-none! p-0 m-0! ml-0">
|
<ul class="flex flex-col gap-1 list-none! p-0 m-0! ml-0">
|
||||||
{#each resolved as f}
|
{#each resolved as f}
|
||||||
<li class="list-none! ml-0">
|
<li class="list-none! ml-0">
|
||||||
<a
|
<a
|
||||||
href={f.href}
|
href={f.href}
|
||||||
class="group flex items-start gap-3 rounded-xs border border-stein-200 bg-white px-3 py-2 hover:border-stein-400 hover:bg-stein-50 transition-colors"
|
class="group flex items-center gap-2 rounded-xs border border-stein-200 bg-white px-2.5 py-1.5 hover:border-stein-400 hover:bg-stein-50 transition-colors"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
>
|
>
|
||||||
<Icon icon={f.iconName} class="size-6 shrink-0 text-stein-600" aria-hidden="true" />
|
<Icon icon={f.iconName} class="size-4 shrink-0 text-stein-500" aria-hidden="true" />
|
||||||
<span class="flex flex-col min-w-0">
|
<span class="flex-1 min-w-0 text-sm text-stein-900 group-hover:underline truncate">{f.label}</span>
|
||||||
<span class="font-medium text-stein-900 group-hover:underline truncate">{f.label}</span>
|
{#if f.description}
|
||||||
{#if f.description}
|
<span class="hidden md:block text-xs text-stein-400 truncate max-w-48">{f.description}</span>
|
||||||
<span class="text-sm text-stein-600">{f.description}</span>
|
{/if}
|
||||||
{/if}
|
<span class="shrink-0 text-xs text-stein-400 tabular-nums">
|
||||||
<span class="text-xs text-stein-500">
|
{#if f.ext}<span class="uppercase">{f.ext}</span>{/if}{#if f.ext && f.sizeLabel} · {/if}{#if f.sizeLabel}{f.sizeLabel}{/if}
|
||||||
{#if f.ext}<span class="uppercase">{f.ext}</span>{/if}
|
|
||||||
{#if f.ext && f.sizeLabel} · {/if}
|
|
||||||
{#if f.sizeLabel}{f.sizeLabel}{/if}
|
|
||||||
</span>
|
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
Reference in New Issue
Block a user