Skip to content

Commit

Permalink
[#70458] fix borders in tables without headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Trzcin authored and mgielda committed Dec 20, 2024
1 parent 9a64f08 commit 86b522e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/components/Preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,17 @@ const Preview = styled.div`
margin-bottom: 0;
}
}
table:not(:has(thead)) > tbody > tr:first-of-type > td {
border-top: 1px solid var(--gray-500);
&:first-of-type {
border-top-left-radius: var(--border-radius);
}
&:last-of-type {
border-top-right-radius: var(--border-radius);
}
}
tr {
&:nth-child(2n + 2) {
background: var(--gray-100);
Expand Down

0 comments on commit 86b522e

Please sign in to comment.