From 5c69f17fec13356dc4203b5860677deff9dce14d Mon Sep 17 00:00:00 2001 From: Martin Anselmo Date: Fri, 20 Dec 2024 08:38:57 -0300 Subject: [PATCH] feat: add more css specificity for tables (#1336) * feat: add more css specificity for tables * Small changes --------- Co-authored-by: matthewlipski --- packages/core/src/editor/editor.css | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/core/src/editor/editor.css b/packages/core/src/editor/editor.css index 9b5d64f30..4bb4224bd 100644 --- a/packages/core/src/editor/editor.css +++ b/packages/core/src/editor/editor.css @@ -109,7 +109,7 @@ Tippy popups that are appended to document.body directly padding } */ -.ProseMirror .tableWrapper { +.bn-editor [data-content-type="table"] .tableWrapper { position: relative; top: -16px; left: -16px; @@ -119,7 +119,7 @@ Tippy popups that are appended to document.body directly overflow-y: hidden; } -.ProseMirror .tableWrapper-inner { +.bn-editor [data-content-type="table"] .tableWrapper-inner { /* position: relative; */ /* top: -16px; left: -16px; */ @@ -127,17 +127,17 @@ Tippy popups that are appended to document.body directly } /* table related: */ -.bn-editor table { +.bn-editor [data-content-type="table"] table { width: auto !important; word-break: break-word; } -.bn-editor th, -.bn-editor td { +.bn-editor [data-content-type="table"] th, +.bn-editor [data-content-type="table"] td { border: 1px solid #ddd; padding: 3px 5px; } -.bn-editor th { +.bn-editor [data-content-type="table"] th { font-weight: bold; text-align: left; }