From 69a3cc82f7c0abc4e3b3d66513a07697c8a09129 Mon Sep 17 00:00:00 2001 From: Arjun Komath Date: Fri, 3 Apr 2026 14:03:23 +1100 Subject: [PATCH] Fix preview --- app/globals.css | 15 +++++++++++++++ components/core/html-view.tsx | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/app/globals.css b/app/globals.css index 385b908..21cd7f2 100644 --- a/app/globals.css +++ b/app/globals.css @@ -103,6 +103,21 @@ textarea { background-color: transparent !important; } +.bn-preview.bn-editor { + padding-inline: 0 !important; +} + +.bn-preview table { + border-collapse: collapse; + table-layout: fixed; + width: 100%; +} + +.dark .bn-preview [data-content-type=table] th, +.dark .bn-preview [data-content-type=table] td { + border-color: hsl(var(--border)); +} + @media screen and (max-width: 768px) { .cl-userPreview { gap: 0rem; diff --git a/components/core/html-view.tsx b/components/core/html-view.tsx index 0b782d3..003662d 100644 --- a/components/core/html-view.tsx +++ b/components/core/html-view.tsx @@ -12,7 +12,7 @@ export const HtmlPreview = ({ content }: { content: string }) => { <>