From a2c717c2e25e6b60cec72822f0f116cb47e069f7 Mon Sep 17 00:00:00 2001 From: drelich Date: Tue, 17 Mar 2026 00:24:47 +0100 Subject: [PATCH] Add visual hint for delete confirmation - Shows 'Click again to delete' text when delete button is clicked once - Text appears next to the red delete button in confirmation state - Makes the double-click deletion flow much more intuitive - Button also stays visible (opacity-100) during confirmation state - Text styled in red to match the delete action --- src/components/NotesList.tsx | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/src/components/NotesList.tsx b/src/components/NotesList.tsx index c0e01e8..23bbe17 100644 --- a/src/components/NotesList.tsx +++ b/src/components/NotesList.tsx @@ -160,19 +160,26 @@ export function NotesList({ {note.title || 'Untitled'} - +
+ {deleteClickedId === note.id && ( + + Click again to delete + + )} + +