Skip to content

Commit

Permalink
Handle text overflow in deploy-value component (#1101)
Browse files Browse the repository at this point in the history
  • Loading branch information
ost-ptk authored Dec 9, 2024
1 parent 3015b33 commit 3608381
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
14 changes: 12 additions & 2 deletions src/apps/signature-request/pages/sign-deploy/deploy-value.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,12 @@ export function DeployValue({
return <Typography type="body">{formatDate(value)}</Typography>;
}

return <Typography type="body">{value}</Typography>;
return (
// Temporary solution. We will change it when we have the new design
<Typography type="body" style={{ overflowWrap: 'anywhere' }}>
{value}
</Typography>
);
} else {
// cl value args
const { parsedValue } = getDeployParsedValue(value);
Expand Down Expand Up @@ -96,6 +101,11 @@ export function DeployValue({
);
}

return <Typography type="body">{parsedValue}</Typography>;
return (
// Temporary solution. We will change it when we have the new design
<Typography type="body" style={{ overflowWrap: 'anywhere' }}>
{parsedValue}
</Typography>
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export function SignDeployContent({
}

return (
<AccordionItem key={key}>
<AccordionItem key={key} gap={SpacingSize.Small}>
<Typography type="body" color="contentSecondary">
{label}
</Typography>
Expand Down

0 comments on commit 3608381

Please sign in to comment.