1
0
mirror of https://github.com/beestat/app.git synced 2025-07-09 03:04:07 -04:00

Fixed tile text wrapping

This commit is contained in:
Jon Ziebell 2022-08-26 13:41:54 -04:00
parent 394bd6cc94
commit ad803838bf

View File

@ -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');