Skip to content

Commit

Permalink
fix(react-content): Fix mismatch between table width and child elemen…
Browse files Browse the repository at this point in the history
…t widths (#488)
  • Loading branch information
Bryce Kalow committed Jan 14, 2022
1 parent 0823c60 commit bd8a16d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/spicy-geckos-type.md
@@ -0,0 +1,5 @@
---
'@hashicorp/react-content': patch
---

Update table styles so that the top-level table width and child table element widths do not get mismatched, while still retaining the max-width and x-axis scroll.
2 changes: 1 addition & 1 deletion packages/content/styles/table.module.css
Expand Up @@ -7,7 +7,7 @@
border: 1px solid #ddd;
border-right: 0;
background-color: transparent;
width: 100%;
width: max-content;
max-width: 100%;
margin-bottom: 20px;

Expand Down

1 comment on commit bd8a16d

@vercel
Copy link

@vercel vercel bot commented on bd8a16d Jan 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.