Skip to content

Commit

Permalink
Add overflow ellipsis and tooltips to output title-bar
Browse files Browse the repository at this point in the history
fixes #537

- Implemented text ellipsis and tooltip to deal with title bar text overflow
- Avoids title-bar texts of adjacent output views being mixed

Signed-off-by: hriday-panchasara <hriday.panchasara@ericsson.com>
  • Loading branch information
hriday-panchasara authored and bhufmann committed Nov 15, 2021
1 parent 7cc04dd commit 144bc4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export abstract class AbstractOutputComponent<P extends AbstractOutputProps, S e
<button className='remove-component-button' onClick={this.closeComponent}>
<FontAwesomeIcon icon={faTimes} />
</button>
<div className='title-bar-label'>
<div className='title-bar-label' title={outputName}>
{outputName}
</div>
</React.Fragment>;
Expand Down
4 changes: 3 additions & 1 deletion packages/react-components/style/output-components-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@
text-align: center;
writing-mode: vertical-rl;
height: 100%;
min-height: 150px;
transform: rotate(180deg);
user-select: none;
align-self: center;
justify-self: center;
cursor: move;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.remove-component-button {
background: none;
Expand Down

0 comments on commit 144bc4f

Please sign in to comment.