Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
fether
Commits
552d424f
Commit
552d424f
authored
Jan 23, 2019
by
Luke Schoen
Browse files
fix: Fixes #387. Shorten account name on Account List and Account page
parent
047c80b1
Pipeline
#149647
passed with stage
Changes
1
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
packages/fether-ui/src/AccountCard/Name/Name.js
View file @
552d424f
...
...
@@ -13,7 +13,11 @@ export const Name = ({ name, screen, ...otherProps }) => (
className
=
{
`account_name
${
screen
!==
'
accounts
'
?
'
-header
'
:
''
}
`
}
{...
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
>
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment