style: fix table cell styles when there is only one cell
@@ -140,26 +140,32 @@ html {
.ant-table-thead > tr > th {
border-color: var(--theme-colors-monochrome-13);
border-style: solid;
- border-width: 0.1rem 0;
+ border-width: var(--theme-sizes-border-width) 0;
white-space: nowrap;
}
.ant-table-thead > tr > th:first-child {
- border-width: 0.1rem 0 0.1rem 0.1rem;
+ border-width: var(--theme-sizes-border-width) 0 var(--theme-sizes-border-width) var(--theme-sizes-border-width);
}
.ant-table-thead > tr > th:last-child {
- border-width: 0.1rem 0.1rem 0.1rem 0;
+ border-width: var(--theme-sizes-border-width) var(--theme-sizes-border-width) var(--theme-sizes-border-width) 0;
+ }
+ .ant-table-thead > tr > th:only-child {
+ border-width: var(--theme-sizes-border-width);
}
.ant-table-tbody > tr > td {
border-color: var(--theme-colors-monochrome-13);
border-style: solid;
border-top-color: transparent;
- border-width: 0.1rem 0;
+ border-width: var(--theme-sizes-border-width) 0;
}
.ant-table-tbody > tr > td:first-child {
- border-width: 0.1rem 0 0.1rem 0.1rem;
+ border-width: var(--theme-sizes-border-width) 0 var(--theme-sizes-border-width) var(--theme-sizes-border-width);
}
.ant-table-tbody > tr > td:last-child {
- border-width: 0.1rem 0.1rem 0.1rem 0;
+ border-width: var(--theme-sizes-border-width) var(--theme-sizes-border-width) var(--theme-sizes-border-width) 0;
+ }
+ .ant-table-tbody > tr > td:only-child {
+ border-width: var(--theme-sizes-border-width);
}
.ant-table-tbody > tr.ant-table-row.clickable {
cursor: pointer;
