Skip to content

Commit 6714f9d

Browse files
committed
improve style of table
1 parent d8b16cb commit 6714f9d

File tree

2 files changed

+30
-3
lines changed

2 files changed

+30
-3
lines changed

src/components/sdkOption.tsx renamed to src/components/sdkOption/index.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ import {getCurrentPlatformOrGuide} from 'sentry-docs/docTree';
22
import {serverContext} from 'sentry-docs/serverContext';
33
import {PlatformCategory} from 'sentry-docs/types';
44

5-
import {PlatformCategorySection} from './platformCategorySection';
6-
import {PlatformSection} from './platformSection';
5+
import styles from './style.module.scss';
6+
7+
import {PlatformCategorySection} from '../platformCategorySection';
8+
import {PlatformSection} from '../platformSection';
79

810
type Props = {
911
name: string;
@@ -53,7 +55,7 @@ export function SdkOption({
5355
</a>
5456
</h3>
5557

56-
<table className="w-auto">
58+
<table className={styles['sdk-option-table']}>
5759
<tbody>
5860
{type && (
5961
<tr>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
.sdk-option-table {
2+
--border-radius: 6px;
3+
4+
width: auto !important;
5+
border-collapse: separate !important;
6+
border-spacing: 0px;
7+
border-radius: var(--border-radius);
8+
border-width: 1px;
9+
10+
& :first-child > :first-child {
11+
border-top-left-radius: var(--border-radius);
12+
}
13+
14+
& :first-child > :last-child {
15+
border-top-right-radius: var(--border-radius);
16+
}
17+
18+
& :last-child > :first-child {
19+
border-bottom-left-radius: var(--border-radius);
20+
}
21+
22+
& :last-child > :last-child {
23+
border-bottom-right-radius: var(--border-radius);
24+
}
25+
}

0 commit comments

Comments
 (0)