Skip to content

Commit

Permalink
[Table] allow multiline header text
Browse files Browse the repository at this point in the history
  • Loading branch information
veej committed Aug 21, 2024
1 parent b7e2a2a commit ac08a02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions packages/bento-design-system/src/Table/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -609,9 +609,7 @@ function ColumnHeader<D extends Record<string, unknown>>({
{hasHeaderContent && (
<Columns space={8} alignY="center" align={column.align}>
{column.Header ? (
<Column width="content">
<Label size={config.headerSize}>{column.render("Header") as any}</Label>
</Column>
<Label size={config.headerSize}>{column.render("Header") as any}</Label>
) : null}
{hint && <Column width="content">{hint}</Column>}
{sortIcon && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const exampleColumns = [
accessor: "name",
}),
tableColumn.text({
headerLabel: "Extended address",
headerLabel: "Extended complete address",
accessor: "address",
width: { custom: 200 },
}),
Expand Down

0 comments on commit ac08a02

Please sign in to comment.