Commit 552d424f authored by Luke Schoen's avatar Luke Schoen
Browse files

fix: Fixes #387. Shorten account name on Account List and Account page

parent 047c80b1
Pipeline #149647 passed with stage
...@@ -13,7 +13,11 @@ export const Name = ({ name, screen, ...otherProps }) => ( ...@@ -13,7 +13,11 @@ export const Name = ({ name, screen, ...otherProps }) => (
className={`account_name ${screen !== 'accounts' ? '-header' : ''}`} className={`account_name ${screen !== 'accounts' ? '-header' : ''}`}
{...otherProps} {...otherProps}
> >
{name || <Placeholder height={18} width={100} />} {(screen === 'accounts'
? `${name.substring(0, 8)}...`
: name.length > 25
? `${name.substring(0, 25)}...`
: name) || <Placeholder height={18} width={100} />}
</div> </div>
); );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment