From 071ba9c0ed03b7f913c8e1da089411e1ee3ee8dc Mon Sep 17 00:00:00 2001 From: Jared Pereira Date: Fri, 27 Feb 2026 11:47:57 -0500 Subject: [PATCH] use correct card border hidden state everywhere --- .../[publication]/[rkey]/Blocks/PublishedPageBlock.tsx | 3 +-- app/lish/[did]/[publication]/[rkey]/PostPages.tsx | 6 ++---- components/ThemeManager/PublicationThemeProvider.tsx | 6 +++++- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/app/lish/[did]/[publication]/[rkey]/Blocks/PublishedPageBlock.tsx b/app/lish/[did]/[publication]/[rkey]/Blocks/PublishedPageBlock.tsx index ef98c328..dca43492 100644 --- a/app/lish/[did]/[publication]/[rkey]/Blocks/PublishedPageBlock.tsx +++ b/app/lish/[did]/[publication]/[rkey]/Blocks/PublishedPageBlock.tsx @@ -167,9 +167,8 @@ export function PagePreview(props: { }) { let previewRef = useRef(null); let { rootEntity } = useReplicache(); - const { theme } = useDocument(); let pageWidth = `var(--page-width-unitless)`; - let cardBorderHidden = !theme?.showPageBackground; + let cardBorderHidden = useCardBorderHidden(); return (