From ba05a8072b64db697b619970e71f40f40d71af65 Mon Sep 17 00:00:00 2001 From: Yeicor <4929005+Yeicor@users.noreply.github.com> Date: Wed, 3 Apr 2024 20:01:46 +0200 Subject: [PATCH] Minor frontend fix for long object names --- frontend/models/Model.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/frontend/models/Model.vue b/frontend/models/Model.vue index 7ef4d29..db143c1 100644 --- a/frontend/models/Model.vue +++ b/frontend/models/Model.vue @@ -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;