Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consistently show ellipsis in place of overflowing tree content #7162

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## v0.16.0

- [tree] consistently show ellipsis in place of overflowing tree content [#7162](https://github.com/eclipse-theia/theia/pull/7162)
- [documentation] updated code of conduct [#7161](https://github.com/eclipse-theia/theia/pull/7161)
- [monaco] code snippets: add support for an array of prefixes [#7177](https://github.com/eclipse-theia/theia/pull/7177)
- [monaco] close an active menubar dropdown when the quick palette is launched [#7136](https://github.com/eclipse-theia/theia/pull/7136)
Expand Down
6 changes: 6 additions & 0 deletions packages/plugin-ext/src/main/browser/style/tree.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,9 @@
align-items: center;
height: 100%;
}

.theia-tree-view .theia-TreeNodeSegmentEllipsis {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,7 @@ export class TreeViewWidget extends TreeWidget {
});
}

const className = [TREE_NODE_SEGMENT_CLASS, TREE_NODE_SEGMENT_GROW_CLASS].join(' ');
nodes.push(<div className={className}>{work}</div >);
nodes.push(<div className='theia-TreeNodeSegmentEllipsis'>{work}</div >);
if (description) {
nodes.push(<div className='theia-tree-view-description'>
{description}
Expand Down