From ce99600aa966f07c2e2ff2f673e74692d29da4cd Mon Sep 17 00:00:00 2001 From: Gigi Date: Sun, 5 Oct 2025 23:11:52 +0100 Subject: [PATCH] fix: move FAB outside reader container for proper viewport-fixed positioning The CSS contain property on .reader was creating a new containing block that broke position:fixed. Moving FAB outside allows it to float properly. --- dist/index.html | 2 +- src/components/ContentPanel.tsx | 92 +++++++++++++++++---------------- 2 files changed, 48 insertions(+), 46 deletions(-) diff --git a/dist/index.html b/dist/index.html index 2b528cc0..7213cbf8 100644 --- a/dist/index.html +++ b/dist/index.html @@ -5,7 +5,7 @@ Boris - Nostr Bookmarks - + diff --git a/src/components/ContentPanel.tsx b/src/components/ContentPanel.tsx index b0353728..811158b7 100644 --- a/src/components/ContentPanel.tsx +++ b/src/components/ContentPanel.tsx @@ -252,56 +252,58 @@ const ContentPanel: React.FC = ({ const highlightRgb = hexToRgb(highlightColor) return ( -
- {/* Hidden markdown preview to convert markdown to HTML */} - {markdown && ( -
- - {markdown} - -
- )} - - - {markdown || html ? ( - markdown ? ( - finalHtml ? ( -
+ <> +
+ {/* Hidden markdown preview to convert markdown to HTML */} + {markdown && ( +
+ + {markdown} + +
+ )} + + + {markdown || html ? ( + markdown ? ( + finalHtml ? ( +
+ ) : ( +
+ + {markdown} + +
+ ) ) : (
- - {markdown} - -
+ /> ) ) : ( -
- ) - ) : ( -
-

No readable content found for this URL.

-
- )} +
+

No readable content found for this URL.

+
+ )} +
{activeAccount && relayPool && ( = ({ highlightColor={highlightColor} /> )} -
+ ) }