Skip to content

Commit 2eea4a1

Browse files
committed
fix table border
1 parent 4c57368 commit 2eea4a1

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

src/components/sdkOption/style.module.scss

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,23 @@
22
--border-radius: 6px;
33

44
width: auto !important;
5+
6+
// This is necessary to make rounded borders work :(
57
border-collapse: separate !important;
68
border-spacing: 0px;
7-
border-radius: var(--border-radius);
8-
border-width: 1px;
9+
10+
& tr th, & tr td {
11+
border-bottom-width: 0;
12+
border-right-width: 0;
13+
}
14+
15+
& tr:last-child > * {
16+
border-bottom-width: 1px;
17+
}
18+
19+
& tr > :last-child {
20+
border-right-width: 1px;
21+
}
922

1023
& :first-child > :first-child {
1124
border-top-left-radius: var(--border-radius);

0 commit comments

Comments
 (0)