fix: keep first-task coach host visible (Closes #1272)
CI / lint (pull_request) Successful in 3m41s
CI / build-release (pull_request) Successful in 7s
CI / browser-journey (pull_request) Successful in 5m43s
CI / release-candidate (pull_request) Has been skipped

This commit is contained in:
timmy committed 2026-08-22 17:28:29 +00:00
1 parent 424ab2bb6d
commit d0e8378a02
2 files changed
+24 -1

No files matched your search

+4 -1
View File
@@ -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() {