fix(frontend): storage failures use the error colour next to the warning, shared mark on its own line in the list, trash key is visible

This commit is contained in:
hh committed 2026-10-14 03:28:29 +02:00
1 parent 3223f62dea
commit 897421e7c4
5 files changed
+30 -22

No files matched your search

@@ -224,8 +224,8 @@
{#if chosen.length > 0}
<SelectionBar
note={problem ??
(chosenGone > 0 ? `${chosenGone} не скачать заново` : undefined)}
failure={doomed === null ? problem : null}
note={chosenGone > 0 ? `${chosenGone} не скачать заново` : undefined}
title="{filesLabel(chosen.length)} · {formatBytes(bytesOf(chosen))}"
warn
>
@@ -251,7 +251,7 @@
</Button>
</SelectionBar>
{:else if problem && doomed === null}
<SelectionBar title={problem}>
<SelectionBar failure={problem} title="Не получилось">
<Button
onclick={() => {
problem = null;
@@ -317,10 +317,7 @@
</p>
{/if}
{#if problem}
<p class="confirm warn">
<Icon name="warning" size="1.25rem" />
<span>{problem}.</span>
</p>
<p class="confirm failed">{problem}.</p>
{/if}
</div>
{/if}
@@ -439,10 +436,15 @@
font-size: 0.9375rem;
line-height: 1.45;
&.rest {
&.rest,
&.failed {
margin-top: 0.75rem;
}
&.failed {
color: var(--color-error);
}
&.warn {
display: flex;
gap: 0.625rem;