Skip to content

Commit

Permalink
Finance, Agent: fix transfers layout (text overflow) (#1271)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpierre committed Sep 11, 2020
1 parent 809c639 commit 0636c78
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
5 changes: 5 additions & 0 deletions apps/agent/app/src/components/Transactions.js
Expand Up @@ -191,6 +191,7 @@ const Transactions = React.memo(function Transactions({
css={`
${textStyle('body2')};
color: ${theme.surfaceContent};
white-space: nowrap;
`}
>
{formattedDate}
Expand Down Expand Up @@ -237,6 +238,10 @@ const Transactions = React.memo(function Transactions({
css={`
${textStyle('body2')};
color: ${theme.surfaceContent};
padding: ${1 * GU}px 0;
overflow-wrap: break-word;
word-break: break-word;
hyphens: auto;
`}
>
{reference}
Expand Down
14 changes: 12 additions & 2 deletions apps/finance/app/src/components/Transfers.js
Expand Up @@ -218,7 +218,14 @@ const Transfers = React.memo(({ tokens, transactions }) => {
)

return [
<time dateTime={formattedDate} title={formattedDate}>
<time
dateTime={formattedDate}
title={formattedDate}
css={`
padding-right: ${2 * GU}px;
white-space: nowrap;
`}
>
{formatDate(date)}
</time>,
<div
Expand All @@ -239,7 +246,10 @@ const Transfers = React.memo(({ tokens, transactions }) => {
</div>,
<div
css={`
padding: 0 ${0.5 * GU}px;
padding: ${1 * GU}px ${0.5 * GU}px;
overflow-wrap: break-word;
word-break: break-word;
hyphens: auto;
`}
>
{reference}
Expand Down

0 comments on commit 0636c78

Please sign in to comment.