Skip to content

Commit

Permalink
style(ontology): crop loooong ontology labels (DEV-493) (#723)
Browse files Browse the repository at this point in the history
  • Loading branch information
kilchenmann committed May 4, 2022
1 parent 8457119 commit 1b7384f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/project/ontology/ontology.component.html
Expand Up @@ -58,8 +58,8 @@ <h2 class="mat-title">
<mat-toolbar class="ontology-editor-header">
<mat-toolbar-row>
<span class="ontology-info">
<h3 class="mat-title space-reducer"
[matTooltip]="ontology.comment ? ontology.comment : ontology.id"
<h3 class="mat-title"
[matTooltip]="ontology.label + (ontology.comment ? ' &mdash; ' + ontology.comment : '')"
matTooltipPosition="above">
{{ontology?.label}}
</h3>
Expand Down
17 changes: 17 additions & 0 deletions src/app/project/ontology/ontology.component.scss
Expand Up @@ -33,6 +33,23 @@ $width: 340px;
.ontology-editor-header {
z-index: 2;
top: 121px;

.ontology-info {
width: calc(100% - 176px - 32px);

h3, p {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 100%;
margin: 0;
padding: 0;
}

h3 {
margin-top: 6px;
}
}
.mat-toolbar-row {
padding-right: 0;

Expand Down

0 comments on commit 1b7384f

Please sign in to comment.