From ad803838bf6b8b2652090261ff2cdb10cdd9ecdc Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Fri, 26 Aug 2022 13:41:54 -0400 Subject: [PATCH] Fixed tile text wrapping --- js/component/tile.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/component/tile.js b/js/component/tile.js index 3b48195..e6ff42d 100644 --- a/js/component/tile.js +++ b/js/component/tile.js @@ -186,6 +186,9 @@ beestat.component.tile.prototype.decorate_right_ = function(parent) { const line_2_container = document.createElement('div'); line_2_container.innerText = this.get_text_()[1]; line_2_container.style.fontWeight = beestat.style.font_weight.light; + line_2_container.style.whiteSpace = 'nowrap'; + line_2_container.style.overflow = 'hidden'; + line_2_container.style.textOverflow = 'ellipsis'; parent.appendChild(line_2_container); } else if (this.get_text_() !== undefined) { const text_container = document.createElement('div');