Skip to content

Commit

Permalink
Minor frontend fix for long object names
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeicor committed Apr 3, 2024
1 parent 27f540b commit ba05a80
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions frontend/models/Model.vue
Original file line number Diff line number Diff line change
Expand Up @@ -444,11 +444,12 @@ if (props.viewer) onViewerReady(props.viewer); else watch((() => props.viewer) a
}
.model-name {
width: 130px;
min-height: 1.15em; /* HACK: Avoid eating the bottom of the text when using 1 line */
max-height: 2em;
width: 179px;
font-size: 110%;
overflow-x: clip;
overflow-y: visible; /* HACK: bottom of text is lost otherwise (due to buggy -webkit-box bounds?) */
word-wrap: break-word;
text-overflow: ellipsis;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2; /* https://caniuse.com/?search=line-clamp */
-webkit-box-orient: vertical;
Expand Down

0 comments on commit ba05a80

Please sign in to comment.