Skip to content

Commit

Permalink
Header - Fix text overflowing account menu on very large usernames
Browse files Browse the repository at this point in the history
  • Loading branch information
pnomolos authored and svk31 committed Feb 28, 2018
1 parent 9d819eb commit 6e98cb5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion app/assets/stylesheets/themes/_theme-template.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2052,7 +2052,12 @@ $mobile-input-bg
// top: 50px!important;
.table-cell {
display: inline-block;
@extend .truncated;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
&:nth-of-type(2) {
max-width: 17em;
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion app/components/Layout/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ class Header extends React.Component {
{walletBalance}

{hasLocalWallet && (
<ul className="dropdown header-menu local-wallet-menu" style={{right: 0, maxHeight: !this.state.accountsListDropdownActive ? 0 : maxHeight, overflowY: "auto", position:"absolute",width:"250px"}}>
<ul className="dropdown header-menu local-wallet-menu" style={{right: 0, maxHeight: !this.state.accountsListDropdownActive ? 0 : maxHeight, overflowY: "auto", position:"absolute",width:"20em"}}>
<li className={cnames({active: active.indexOf("/accounts") !== -1}, "divider")} onClick={this._onNavigate.bind(this, "/accounts")}>
<div className="table-cell"><Icon size="2x" name="folder" /></div>
<div className="table-cell"><Translate content="explorer.accounts.title" /></div>
Expand Down

0 comments on commit 6e98cb5

Please sign in to comment.