Skip to content

Commit

Permalink
Fix issue where full test titles cannot be seen when truncation occurs.
Browse files Browse the repository at this point in the history
#65
- Add title attribute so full titles can be seen in title tooltip
- Show full test titles when the test is expanded
  • Loading branch information
Adam Gruber committed Nov 13, 2017
1 parent ab4ab1e commit 1f64e4b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/components/test/test.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@
@nest .hook & {
color: var(--black54);
}

@nest .expanded & {
line-height: 1.5;
padding-top: 3px;
white-space: normal;
}
}

.icon {
Expand Down
2 changes: 1 addition & 1 deletion src/components/test/test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class Test extends React.Component {
<header className={ cx('header') } onClick={ this.toggleExpandedState }>
<div className={ cx('title-wrap') }>
{ testIcon() }
<h4 className={ cx('title') }>{ title }</h4>
<h4 className={ cx('title') } title={ title }>{ title }</h4>
</div>
<div className={ cx('info') }>
{ !!context && <Icon name='chat_bubble_outline' className={ cx('context-icon') } size={ 18 } /> }
Expand Down

0 comments on commit 1f64e4b

Please sign in to comment.