From 820ab1d90247d603e105d71f1feb57f3913a1d5d Mon Sep 17 00:00:00 2001 From: Gigi Date: Wed, 15 Oct 2025 21:48:41 +0200 Subject: [PATCH] fix(ui): make highlight button sticky and always visible - Wrap button in sticky positioned container with height: 0 - Button now floats and stays visible while scrolling - Remains within reader pane boundaries on desktop - Uses flexbox to align button to the right side --- src/components/HighlightButton.tsx | 57 +++++++++++++++++------------- 1 file changed, 33 insertions(+), 24 deletions(-) diff --git a/src/components/HighlightButton.tsx b/src/components/HighlightButton.tsx index 0af91c42..3e9d267b 100644 --- a/src/components/HighlightButton.tsx +++ b/src/components/HighlightButton.tsx @@ -41,36 +41,45 @@ export const HighlightButton = React.forwardRef - - + + ) } )