Skip to content

Commit

Permalink
Add overflow ellipses and tooltips to available view list
Browse files Browse the repository at this point in the history
Signed-off-by: Yining Wang <yining.wang@ericsson.com>
  • Loading branch information
ywang001 authored and bhufmann committed Nov 5, 2021
1 parent 15bf563 commit c65cd41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export class ReactAvailableViewsWidget extends React.Component<ReactAvailableVie
traceContainerClassName = traceContainerClassName + ' theia-mod-selected';
}
return <div className={traceContainerClassName}
title={outputName + ':\n' + outputDescription}
id={`${traceContainerClassName}-${props.index}`}
key={props.key}
style={props.style}
Expand Down Expand Up @@ -137,7 +138,7 @@ export class ReactAvailableViewsWidget extends React.Component<ReactAvailableVie
protected doExperimentSelected(experiment: Experiment | undefined): void {
if (this._selectedExperiment?.UUID !== experiment?.UUID) {
this._selectedExperiment = experiment;
this.setState({availableOutputDescriptors: []});
this.setState({ availableOutputDescriptors: [] });
this.updateAvailableViews();
}
}
Expand Down
4 changes: 4 additions & 0 deletions packages/react-components/style/trace-explorer.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,16 @@
}

.trace-element-name, .outputs-element-name {
overflow: hidden;
text-overflow: ellipsis;
font-weight: bold;
margin: unset;
height: var(--trace-extension-list-line-height);
}

.trace-element-path-container, .outputs-element-description {
overflow: hidden;
text-overflow: ellipsis;
margin: unset;
color: var(--theia-ui-font-color2);
/* color: rgb(160, 160, 160); */
Expand Down

0 comments on commit c65cd41

Please sign in to comment.