Skip to content

Commit a076ea9

Browse files
committed
Switch to auto table layout
Signed-off-by: Julius Härtl <[email protected]>
1 parent 88061e5 commit a076ea9

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

css/prosemirror.scss

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ div.ProseMirror {
267267
table {
268268
border-spacing: 0;
269269
width: calc(100% - 50px);
270-
table-layout: fixed;
270+
table-layout: auto;
271271
white-space: normal; // force text to wrapping
272272
margin-bottom: 1em;
273273
+ & {
@@ -290,10 +290,14 @@ div.ProseMirror {
290290
color: var(--color-main-text);
291291
}
292292
th {
293-
padding: 0 0 0 0.75em;
294-
font-weight: normal;
295-
border-bottom-color: var(--table-color-heading-border);
296-
color: var(--table-color-heading);
293+
padding: 0 0 0 0.75em;
294+
font-weight: normal;
295+
border-bottom-color: var(--table-color-heading-border);
296+
color: var(--table-color-heading);
297+
298+
& > div {
299+
display: flex;
300+
}
297301
}
298302
tr {
299303
background-color: var(--table-color-background);

src/nodes/TableHeaderView.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,12 @@ export default {
101101
th {
102102
103103
.content {
104-
float: left;
105104
margin: 0;
106105
padding-top: 0.75em;
106+
flex-grow: 1;
107107
}
108108
109109
.action-item {
110-
float: right;
111110
opacity: 50%;
112111
}
113112

0 commit comments

Comments
 (0)