Skip to content

Commit

Permalink
Adds fixed table layout to table block
Browse files Browse the repository at this point in the history
I have added this to both the editor and also to the front styles. It might be a point for discussion along with should this be done, but also would the editor and theme show it?

Fixes #16045
  • Loading branch information
Tammie Lister committed Dec 2, 2019
1 parent b03317e commit 69920ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/block-library/src/table/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
height: auto;

table {
table-layout: fixed;
// Ensure the table element is not full-width when aligned.
width: auto;
}
Expand Down
1 change: 1 addition & 0 deletions packages/block-library/src/table/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

table {
width: 100%;
table-layout: fixed;
}

// Fixed layout toggle
Expand Down

0 comments on commit 69920ec

Please sign in to comment.