From e1c53769cd0132a36f08585abede2aa031249427 Mon Sep 17 00:00:00 2001 From: Julien Froidefond Date: Sat, 18 Oct 2025 21:39:16 +0200 Subject: [PATCH] refactor: update ControlButtons component styles for improved layout and consistency, adjusting icon sizes and padding --- .../reader/components/ControlButtons.tsx | 61 +++++++++---------- 1 file changed, 28 insertions(+), 33 deletions(-) diff --git a/src/components/reader/components/ControlButtons.tsx b/src/components/reader/components/ControlButtons.tsx index afbb704..1b4ca55 100644 --- a/src/components/reader/components/ControlButtons.tsx +++ b/src/components/reader/components/ControlButtons.tsx @@ -45,7 +45,7 @@ export const ControlButtons = ({ {/* Boutons de contrôle */}
{ @@ -66,8 +66,8 @@ export const ControlButtons = ({ ? "reader.controls.doublePage.disable" : "reader.controls.doublePage.enable" )} - iconClassName="h-6 w-6" - className="rounded-full" + iconClassName="h-5 w-5" + className="rounded-full h-9 w-9" /> -
e.stopPropagation()}> +
e.stopPropagation()}>
+ {onClose && ( + { + e.stopPropagation(); + onClose(currentPage); + }} + tooltip={t("reader.controls.close")} + iconClassName="h-5 w-5" + className="rounded-full h-9 w-9" + /> + )}
- {/* Bouton fermer */} - {onClose && ( - { - e.stopPropagation(); - onClose(currentPage); - }} - tooltip={t("reader.controls.close")} - iconClassName="h-6 w-6" - className={cn( - "absolute top-4 right-4 rounded-full bg-background/70 backdrop-blur-md hover:bg-background/80 transition-all duration-300 z-30", - showControls ? "opacity-100" : "opacity-0 pointer-events-none" - )} - /> - )} - {/* Bouton précédent */} {currentPage > 1 && (