fix: keep first-task coach host visible (Closes #1272)
This commit is contained in:
1 parent
424ab2bb6d
commit
d0e8378a02
2 files changed
+24
-1
No files matched your search
@@ -62,7 +62,10 @@
|
||||
|
||||
function renderCoach() {
|
||||
if (!options.coach) return;
|
||||
options.coach.hidden = !(options.mediaQuery.matches && state() === 'coaching' && options.isTodayActive());
|
||||
const visible = options.mediaQuery.matches && state() === 'coaching' && options.isTodayActive();
|
||||
options.coach.hidden = !visible;
|
||||
const host = options.coach.closest?.('[data-mobile-today-hud]');
|
||||
if (visible && host) host.hidden = false;
|
||||
}
|
||||
|
||||
function render() {
|
||||
|
||||
Reference in new issue
Block a user