Skip to content

Commit 972ce4f

Browse files
committed
Tweaked table styling to match the editor
1 parent 5952363 commit 972ce4f

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

src/elements/Table/Table.scss

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
overflow-x: auto;
66

77
&--withFixedColumns {
8-
width: min(var(--width), 100vw);
8+
width: min(var(--width), 95vw);
99
margin-left: 50%;
1010
transform: translateX(-50%);
1111
}
@@ -18,11 +18,9 @@
1818
table-layout: auto;
1919

2020
&--withFixedColumns {
21-
width: initial;
2221
max-width: none;
2322
margin-left: auto;
2423
margin-right: auto;
25-
table-layout: fixed;
2624
}
2725
}
2826

src/elements/Table/Table.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ export function Table({ children, node }: Props) {
2727
className={classNames('prezly-slate-table', {
2828
'prezly-slate-table--withFixedColumns': withFixedColumns,
2929
})}
30-
style={{ width }}
3130
>
3231
<tbody>{children}</tbody>
3332
</table>

0 commit comments

Comments
 (0)