Skip to content

Commit

Permalink
Fix issues for table header
Browse files Browse the repository at this point in the history
- set a correct size
- remove the `textTransform` property
  • Loading branch information
kkosiorowska committed Jan 15, 2024
1 parent 6707154 commit aa5b5a0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dapp/src/components/TransactionHistory/Table/columns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const COLUMNS: ColumnDef<StakeHistory, any>[] = [
),
}),
columnHelper.display({
header: "action",
header: "Action",
cell: ({ row: { original } }) => (
<CustomCell
type="text"
Expand Down
8 changes: 8 additions & 0 deletions dapp/src/theme/Table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ const variantDoubleRowTd = defineStyle({
},
})

const variantDoubleRowTh = defineStyle({
textTransform: "none",
fontWeight: "semibold",
fontSize: "sm",
lineHeight: "sm",
})

const variantDoubleRowCellContainer = defineStyle({
display: "flex",
flexDirection: "column",
Expand All @@ -50,6 +57,7 @@ const variantDoubleRowDivider = defineStyle({
const variantDoubleRow = definePartsStyle({
table: variantDoubleRowTable,
td: variantDoubleRowTd,
th: variantDoubleRowTh,
cellContainer: variantDoubleRowCellContainer,
cell: variantDoubleRowCell,
divider: variantDoubleRowDivider,
Expand Down

0 comments on commit aa5b5a0

Please sign in to comment.