From 03ef32ad7840d711141ae8df0d33a7a7004ef6dd Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 1 May 2026 07:13:33 +0000 Subject: fix(study): prevent card layout shift from undo button visibility Move the undo button next to the edit button (absolutely positioned inside the card) so its conditional appearance no longer pushes the card down. https://claude.ai/code/session_01DEGwZf6bmzv4X2XTsK95Wk --- src/client/pages/StudyPage.tsx | 105 +++++++++++++++++++++++------------------ 1 file changed, 59 insertions(+), 46 deletions(-) (limited to 'src/client/pages') diff --git a/src/client/pages/StudyPage.tsx b/src/client/pages/StudyPage.tsx index 9127e39..584f543 100644 --- a/src/client/pages/StudyPage.tsx +++ b/src/client/pages/StudyPage.tsx @@ -295,28 +295,6 @@ function StudySession({ )} - {/* Undo Button */} - {pendingReview && !isFlipped && !isSessionComplete && ( -
- -
- )} - {/* No Cards State */} {hasNoCards && (
- {/* Edit button */} - {/* biome-ignore lint/a11y/useSemanticElements: Cannot nest
{/* Card state badge */}