Merge pull request 'PEP-78: ошибка действия видна при прокрутке' (#71) from task/pep-78 into main
This commit is contained in:
commit
accfe52ac6
@ -62,7 +62,8 @@ export function StatusBadge({ status, kind = "task" }: { status: string; kind?:
|
||||
|
||||
export function Flash({ error }: { error?: string }) {
|
||||
return error ? (
|
||||
<p role="alert" className="mb-4 flex items-start gap-2 rounded-lg border border-destructive/40 bg-destructive/10 px-4 py-3 text-sm text-foreground">
|
||||
// Sticky: an action far down the page (a board card, «Принять») must not fail silently above the fold.
|
||||
<p role="alert" className="sticky top-2 z-40 mb-4 flex items-start gap-2 rounded-lg border border-destructive/60 bg-[color-mix(in_oklab,var(--destructive)_14%,var(--background))] px-4 py-3 text-sm text-foreground shadow-lg">
|
||||
<CircleAlert className="mt-0.5 size-4 shrink-0 text-destructive" />
|
||||
<span>{error}</span>
|
||||
</p>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user