From c350ca48934e21610003847aad7308465f057547 Mon Sep 17 00:00:00 2001 From: R0m1k3 Date: Thu, 12 Feb 2026 13:16:10 +0100 Subject: [PATCH] Fix Focus Mode Undo Button visibility and layout --- web/src/components/focus/FocusCardStack.tsx | 30 ++++++++++++--------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/web/src/components/focus/FocusCardStack.tsx b/web/src/components/focus/FocusCardStack.tsx index 3d83163..2109218 100644 --- a/web/src/components/focus/FocusCardStack.tsx +++ b/web/src/components/focus/FocusCardStack.tsx @@ -202,21 +202,25 @@ export function FocusCardStack({ articles, onMarkRead, onKeep, onToggleFavorite, - {/* Undo Button */} - {currentIndex > 0 && ( - - )} + } + }} + disabled={currentIndex === 0} + className={`p-3 rounded-full backdrop-blur-md text-white shadow-lg border border-white/20 transition-all duration-300 ${currentIndex > 0 + ? 'bg-nature/80 hover:bg-nature hover:scale-105 opacity-100 cursor-pointer' + : 'bg-white/5 opacity-0 pointer-events-none scale-90' + }`} + title="Revenir en arrière" + > + + + +