feat(arr): delete affordance on subtitle chips
Adds a two-click delete icon to each present-subtitle chip, naming
the sidecar in its title/aria-label. Wires the existing DELETE
/api/subtitles/{id} endpoint and reuses the panel's refresh() so
chips and the manual panel repaint after a delete (#223).
This commit is contained in:
@@ -1492,6 +1492,53 @@ body {
|
||||
border-style: dashed;
|
||||
}
|
||||
|
||||
/* a delete that failed reads the same fault red the rest of the app uses,
|
||||
right on the chip it happened to — no separate note element for it */
|
||||
.chip[data-tone="fault"] {
|
||||
color: var(--signal-fault);
|
||||
border-color: oklch(from var(--signal-fault) l c h / 55%);
|
||||
}
|
||||
|
||||
/* the delete affordance nested in a present-subtitle chip (issue #223) */
|
||||
.chip-delete {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
margin-inline-start: var(--space-1);
|
||||
padding: 0;
|
||||
background: none;
|
||||
border: 0;
|
||||
border-radius: var(--radius);
|
||||
color: var(--ink-faint);
|
||||
cursor: pointer;
|
||||
transition:
|
||||
color 150ms var(--ease-out),
|
||||
background 150ms var(--ease-out);
|
||||
}
|
||||
|
||||
.chip-delete:hover,
|
||||
.chip-delete:focus-visible {
|
||||
color: var(--signal-fault);
|
||||
background: oklch(from var(--signal-fault) l c h / 15%);
|
||||
}
|
||||
|
||||
.chip-delete[data-armed="true"] {
|
||||
color: var(--signal-fault);
|
||||
background: oklch(from var(--signal-fault) l c h / 15%);
|
||||
}
|
||||
|
||||
.chip-delete:disabled {
|
||||
cursor: default;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.close-icon {
|
||||
width: 0.625rem;
|
||||
height: 0.625rem;
|
||||
}
|
||||
|
||||
/* ---- manual subtitle deck (§9.3, §15, issue #203) ---------------------- */
|
||||
|
||||
/* the panel opens under the file's own row, sharing the release deck's
|
||||
|
||||
Reference in New Issue
Block a user