From 86b522ea5b676030417f677e549240e22717cf3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Trzci=C5=84ski?= Date: Fri, 20 Dec 2024 09:12:19 +0100 Subject: [PATCH] [#70458] fix borders in tables without headers --- src/components/Preview.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/components/Preview.js b/src/components/Preview.js index e3245d6..5be5eab 100644 --- a/src/components/Preview.js +++ b/src/components/Preview.js @@ -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);