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

Commit

Permalink
#921 Ellipsis on text, not on image
Browse files Browse the repository at this point in the history
  • Loading branch information
damianprzygodzki committed Jun 29, 2017
1 parent 8d43ddf commit fc45473
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/assets/css/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,14 @@
display: block;
}

.subheader-title {
text-overflow: ellipsis;
overflow: hidden;
display: inline-block;
width: calc(100% - 2rem);
line-height: 1.1rem;
}

.subheader-column {
width: 50%;
border-right: 1px solid #e1e7ec;
Expand Down Expand Up @@ -256,7 +264,6 @@

.subheader-header {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
padding: .75rem 1.25rem;
color: $brand-color-primary;
Expand Down
2 changes: 1 addition & 1 deletion src/components/header/SubHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ class Subheader extends Component {
transparentBookmarks={!!siteName}
updateData={this.handleUpdateBreadcrumb}
>
<span>
<span className="subheader-title">
{currentNode ? currentNode.caption : siteName}
</span>
</BookmarkButton>
Expand Down

0 comments on commit fc45473

Please sign in to comment.