mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-01 00:42:49 +08:00
Design store: make the delete button red in every design
Explicit red instead of the theme's accent color, so it stays visually distinct as a destructive action regardless of the active design. The confirm() prompt before deletion was already there. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
This commit is contained in:
1 parent
ed9fb80a9b
commit
cfd9503313
2 files changed
+15
No files matched your search
@@ -5421,6 +5421,7 @@ function DesignPanel({
|
||||
</ActionIcon>
|
||||
</button>
|
||||
<button
|
||||
className="ts-design-theme-card-delete"
|
||||
onClick={() => {
|
||||
if (window.confirm(t("design.custom.deleteConfirm"))) onDeleteCustomTheme(theme.id);
|
||||
}}
|
||||
|
||||
Reference in new issue
Block a user