From 71d98bc603e4d54bc523e5ce0389a8b09f915e17 Mon Sep 17 00:00:00 2001 From: Nils Maier Date: Sat, 14 Sep 2019 00:00:20 +0200 Subject: [PATCH] Use correct rows for tooltip ETA/status --- style/manager.css | 5 +++++ windows/manager/tooltip.ts | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/style/manager.css b/style/manager.css index 63d92fe..4d72656 100644 --- a/style/manager.css +++ b/style/manager.css @@ -530,6 +530,11 @@ body > * { background: var(--done-color); } +#tooltip-eta.single { + font-weight: bold; + grid-column-end: span 2; +} + .deletefiles-list { padding-left: 1ex; padding-right: 1.5ex; diff --git a/windows/manager/tooltip.ts b/windows/manager/tooltip.ts index e857349..9fa5ba2 100644 --- a/windows/manager/tooltip.ts +++ b/windows/manager/tooltip.ts @@ -192,7 +192,7 @@ export class Tooltip { const hidden = this.speedbox.classList.contains("hidden"); if (!running && !hidden) { - this.eta.style.fontWeight = "bold"; + this.eta.classList.add("single"); this.etalabel.classList.add("hidden"); this.speedbox.classList.add("hidden"); this.progressbar.classList.add("hidden"); @@ -202,7 +202,7 @@ export class Tooltip { return; } if (hidden) { - this.eta.style.fontWeight = "auto"; + this.eta.classList.remove("single"); this.etalabel.classList.remove("hidden"); this.speedbox.classList.remove("hidden"); this.progressbar.classList.remove("hidden");