Use ellipsis + tooltip combo to fix layout on long string

This commit is contained in:
nymkappa
2022-06-09 15:58:49 +02:00
parent bb7bd1a504
commit aa02170e5c
10 changed files with 57 additions and 15 deletions

View File

@@ -292,5 +292,9 @@ export class PoolRankingComponent implements OnInit {
this.chartOptions.backgroundColor = 'none';
this.chartInstance.setOption(this.chartOptions);
}
isEllipsisActive(e) {
return (e.offsetWidth < e.scrollWidth);
}
}