fix(ui): actionable toasts linger, and a dead hotkey shows in the sidebar
Every toast auto-dismissed after 2.8 s — fine for a success receipt, too short to read AND act on an error. Errors and warnings now stay 10 s and can be clicked away; success is unchanged. The hotkey-conflict warning also needed a trace outside the toast: the ⚠ in Settings only helps someone who opens the panel. A dot on the sidebar Settings entry (plus a tooltip) is now the cue in the main UI that a combo is dead. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -2551,6 +2551,19 @@ body[data-editor-position="center"]:has(#settingsPanel.is-open)::before {
|
||||
min-width: 240px;
|
||||
animation: toastIn var(--t-base);
|
||||
}
|
||||
/* Errors / warnings linger — let the user clear them instead of waiting. */
|
||||
.toast.is-dismissable { cursor: pointer; }
|
||||
/* Settings entry point when a hotkey is dead: a dot the user meets in the
|
||||
normal UI, not only inside the panel they may never open. */
|
||||
#settingsBtn.has-alert { position: relative; }
|
||||
#settingsBtn.has-alert::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 6px; right: 8px;
|
||||
width: 7px; height: 7px;
|
||||
border-radius: 50%;
|
||||
background: var(--warning, #e0a800);
|
||||
}
|
||||
.toast.is-success { border-left-color: var(--success); }
|
||||
.toast.is-error { border-left-color: var(--danger); }
|
||||
.toast.is-warning { border-left-color: var(--warning); }
|
||||
|
||||
Reference in New Issue
Block a user