Skip to content

Commit 6a7922f

Browse files
fix: Table padding (#1906)
1 parent 19e3d2e commit 6a7922f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

packages/core/src/editor/editor.css

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,16 +151,15 @@ Tippy popups that are appended to document.body directly
151151
.bn-editor [data-content-type="table"] .tableWrapper {
152152
/* Size of + buttons to add rows/columns. */
153153
--bn-table-widget-size: 22px;
154+
/* Size of table handles, divided by 2 since half the element is in the cell. */
155+
--bn-table-handle-size: calc(18px / 2);
154156
overflow-y: hidden;
155-
padding-bottom: var(--bn-table-widget-size);
157+
padding: var(--bn-table-handle-size) var(--bn-table-widget-size)
158+
var(--bn-table-widget-size) var(--bn-table-handle-size);
156159
position: relative;
157160
width: 100%;
158161
}
159162

160-
.bn-editor [data-content-type="table"] .tableWrapper-inner {
161-
width: calc(100% - var(--bn-table-widget-size));
162-
}
163-
164163
/* table related: */
165164
.bn-editor [data-content-type="table"] table {
166165
width: auto !important;

0 commit comments

Comments
 (0)