fix(webapp): add delete button to workout history cards

Previously only the bot's /delete command could remove a workout —
the Mini App history view had an edit pencil but no delete button.
Added a trash-icon button next to the pencil with a native
Telegram confirm dialog before deleting.

Also added the per-user workout number to each history card header
(e.g. "#3 · Sun 19 Apr 2026, 14:30") so users can correlate with
the number shown in save toasts and /history.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Danny 2026-04-19 15:33:24 +02:00
parent 24b8ceaac2
commit 9636d6870e
2 changed files with 34 additions and 1 deletions

View file

@ -392,6 +392,11 @@ details[open] .raw-toggle::before {
font-size: 14px !important;
}
.btn-history-delete {
font-size: 14px !important;
color: var(--tg-theme-destructive-text-color, #d33) !important;
}
.history-group {
margin-bottom: 8px;
}