Skip to content
This repository has been archived by the owner on Feb 29, 2020. It is now read-only.

Commit

Permalink
Merge pull request #4176 from rlr/Bug1464349/nowrap
Browse files Browse the repository at this point in the history
Fix Bug 1464349 - truncate and nowrap card hostnames
  • Loading branch information
rlr committed May 29, 2018
2 parents df4da64 + 071fe79 commit 8665636
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion system-addon/content-src/components/Card/Card.jsx
Expand Up @@ -165,7 +165,7 @@ export class _Card extends React.PureComponent {
{link.type === "download" && <div className="card-host-name alternate"><FormattedMessage id={GetPlatformString(this.props.platform)} /></div>}
{link.hostname &&
<div className="card-host-name">
{link.hostname}{link.type === "download" && ` \u2014 ${link.description}`}
{link.hostname.slice(0, 100)}{link.type === "download" && ` \u2014 ${link.description}`}
</div>
}
<div className={[
Expand Down
1 change: 1 addition & 0 deletions system-addon/content-src/components/Card/_Card.scss
Expand Up @@ -124,6 +124,7 @@
padding-bottom: 4px;
text-overflow: ellipsis;
text-transform: uppercase;
white-space: nowrap;
}

.card-host-name.alternate { display: none; }
Expand Down

0 comments on commit 8665636

Please sign in to comment.