Skip to content

Commit

Permalink
fix(DataGrid/DataTable): text align bug
Browse files Browse the repository at this point in the history
fixes justify prop for row text
  • Loading branch information
dreamwasp authored Nov 30, 2021
1 parent e7e60a4 commit 89ae2ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/gamut/src/DataList/Rows/Row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ export const Row: DataRow = ({
{render ? (
render(row)
) : typeof row[key] === 'string' ? (
<Text truncate="ellipsis">{row[key]}</Text>
<Text truncate="ellipsis" textAlign={justify ?? 'left'}>
{row[key]}
</Text>
) : (
row[key]
)}
Expand Down

0 comments on commit 89ae2ad

Please sign in to comment.