Skip to content

Commit 1ba9417

Browse files
Merge pull request #611 from frappe/table-scroll
fix: add horizontal scrolling for tables
2 parents 60d1179 + 46e5e18 commit 1ba9417

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/components/TextEditor/TextEditor.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ onMounted(() => {
174174
}),
175175
Table.configure({
176176
resizable: true,
177+
renderWrapper: true,
177178
}),
178179
TableRow,
179180
TableHeader,

src/components/TextEditor/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ img.ProseMirror-selectednode {
136136
text-decoration: underline;
137137
}
138138

139+
.ProseMirror .tableWrapper {
140+
overflow-x: scroll;
141+
}
142+
139143
/* Edit prose classes to be more functional */
140144
.prose-v2 {
141145
line-height: 1.5 !important;

0 commit comments

Comments
 (0)