Skip to content

Commit

Permalink
fix: align text and caption left so it appears correctly in extension…
Browse files Browse the repository at this point in the history
… view
  • Loading branch information
pete-watters committed Oct 17, 2023
1 parent 529c03d commit bd25751
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ interface AssetRowGridProps {
export function AssetRowGrid({ title, balance, caption, usdBalance }: AssetRowGridProps) {
return (
<Grid columns={2} gridTemplateColumns="2fr 1fr" gridTemplateRows={2} gap={0}>
<GridItem whiteSpace="nowrap" overflow="hidden" textOverflow="ellipsis">
<GridItem textAlign="left" whiteSpace="nowrap" overflow="hidden" textOverflow="ellipsis">
{title}
</GridItem>
<GridItem textAlign="right">{balance}</GridItem>
<GridItem>{caption}</GridItem>
<GridItem textAlign="left">{caption}</GridItem>
{usdBalance && <GridItem>{usdBalance}</GridItem>}
</Grid>
);
Expand Down

0 comments on commit bd25751

Please sign in to comment.