Skip to content

Commit 5d57092

Browse files
fix: Overflow on table blocks (#1892)
* Fixed overflow on table blocks * Small fix
1 parent 351d5ca commit 5d57092

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

packages/core/src/editor/editor.css

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -148,25 +148,17 @@ Tippy popups that are appended to document.body directly
148148
transition: all 0.2s;
149149
}
150150

151-
/* .tableWrapper {
152-
padding
153-
} */
154-
155151
.bn-editor [data-content-type="table"] .tableWrapper {
156-
position: relative;
157-
top: -16px;
158-
left: -16px;
159-
/* padding: 16px; */
160-
min-width: calc(100% + 16px);
161-
padding-bottom: 16px;
152+
/* Size of + buttons to add rows/columns. */
153+
--bn-table-widget-size: 22px;
162154
overflow-y: hidden;
155+
padding-bottom: var(--bn-table-widget-size);
156+
position: relative;
157+
width: 100%;
163158
}
164159

165160
.bn-editor [data-content-type="table"] .tableWrapper-inner {
166-
/* position: relative; */
167-
/* top: -16px;
168-
left: -16px; */
169-
padding: 16px;
161+
width: calc(100% - var(--bn-table-widget-size));
170162
}
171163

172164
/* table related: */

0 commit comments

Comments
 (0)