Skip to content

Commit

Permalink
feat: add more css specificity for tables (#1336)
Browse files Browse the repository at this point in the history
* feat: add more css specificity for tables

* Small changes

---------

Co-authored-by: matthewlipski <[email protected]>
  • Loading branch information
mfanselmo and matthewlipski authored Dec 20, 2024
1 parent 05b38f8 commit 5c69f17
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/core/src/editor/editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -119,25 +119,25 @@ 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; */
padding: 16px;
}

/* 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;
}
Expand Down

0 comments on commit 5c69f17

Please sign in to comment.