refactor(styles): update markdown table styles for improved layout and border handling

This commit is contained in:
Teo 2025-06-12 14:59:26 +08:00
parent b5636646c9
commit 048a9135ac
2 changed files with 16 additions and 3 deletions

View File

@ -157,15 +157,28 @@
}
table {
border-collapse: collapse;
--table-border-radius: 8px;
margin: 1em 0;
width: 100%;
border-radius: var(--table-border-radius);
overflow: hidden;
border-collapse: separate;
border: 0.5px solid var(--color-border);
border-spacing: 0;
}
th,
td {
border: 0.5px solid var(--color-border);
border-right: 0.5px solid var(--color-border);
border-bottom: 0.5px solid var(--color-border);
padding: 0.5em;
&:last-child {
border-right: none;
}
}
tr:last-child td {
border-bottom: none;
}
th {

View File

@ -29,7 +29,7 @@ const Selector = <V extends string | number>({
onChange = () => {},
placement = 'bottomRight',
size = 13,
placeholder = '待选择',
placeholder,
disabled = false
}: SelectorProps<V>) => {
const [open, setOpen] = useState(false)