diff --git a/orchestrator/templates/index.html.j2 b/orchestrator/templates/index.html.j2 index b15a071..a86f92b 100644 --- a/orchestrator/templates/index.html.j2 +++ b/orchestrator/templates/index.html.j2 @@ -328,7 +328,7 @@ textarea + .mic-auto { display: flex; margin: 4px 0 0 auto; } .mic-live[hidden] { display: none; } .mic-live::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: mic-pulse 1s ease-in-out infinite; } @keyframes mic-pulse { 50% { opacity: .45; } } -@media (max-width: 640px) { .mic { min-width: 44px; min-height: 44px; } } +@media (max-width: 640px) { .btn.small.mic { min-width: 44px; min-height: 44px; } } @media (prefers-reduced-motion: reduce) { .mic[aria-pressed="true"], .mic-live::before { animation: none; } } .palette-list { max-height: 55vh; margin: 0; padding: 6px; overflow: auto; list-style: none; } .palette-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; } diff --git a/orchestrator/templates/style-ui.css b/orchestrator/templates/style-ui.css index f5354de..cfca727 100644 --- a/orchestrator/templates/style-ui.css +++ b/orchestrator/templates/style-ui.css @@ -173,6 +173,9 @@ body.fit .spot-host { flex: none; } .radio-modes button { gap: 4px; padding-inline: 7px; } } @container history (max-width: 34rem) { + .radio-logbox > .radio-card-head { gap: 4px; } + .radio-logbox > .radio-card-head .group-title { margin-inline-end: 0; } + .radio-logbox .radio-tabs button { padding-inline: 7px; } .radio-row, .radio-pick { gap: 4px; } .radio-pick { padding-inline-start: 6px; } .radio-pick > time { flex: 0 1 auto; min-width: 0; overflow: hidden; font-size: var(--fs-xs); text-overflow: ellipsis; } diff --git a/tests/e2e/test_workbench_w6_e2e.py b/tests/e2e/test_workbench_w6_e2e.py index 61b535b..28df0a8 100644 --- a/tests/e2e/test_workbench_w6_e2e.py +++ b/tests/e2e/test_workbench_w6_e2e.py @@ -108,6 +108,10 @@ BUBBLES_ON = """(async () => {@HELPERS@@READ@ }); } }).observe(layer, {subtree: true, childList: true, attributes: true, attributeFilter: ["class", "data-state", "data-words", "data-read"]}); + const speaker = document.querySelector('[data-face="@FACE@"]'); + if (speaker && !visible(speaker.getBoundingClientRect())) { + speaker.scrollIntoView({block: "center", inline: "center"}); + } toggle.click(); const on = Boolean(await until(() => toggle.getAttribute("aria-pressed") === "true" && !layer.hidden, 8000)); await cue("@CUE@"); @@ -217,6 +221,10 @@ def probe(template: str, cue: str = CUE) -> str: return template.replace("@HELPERS@", base.HELPERS).replace("@READ@", READ).replace("@UNLABELLED@", base.UNLABELLED).replace("@CUE@", cue).replace("@FADE@", str(FADE_MS)) +def spoken(cue: str, face: str) -> str: + return probe(BUBBLES_ON, cue).replace("@FACE@", face) + + def quiet(found: dict) -> dict: violations = found["violations"] return {**found, "violations": None if violations is None else [seen for seen in violations if not seen.endswith("/favicon.ico")]} @@ -271,7 +279,7 @@ class TestWorkbenchBubbles(HubCase): cue = f"{CUE}-docs" if SECOND_FROM[width] == "Docs" else CUE shot = str(OUT / f"{browser}-{width}-bubbles") steps += [ - {"width": width, "height": height, "url": f"{self.base}?{width}#{view}", "wait": 1200, "probe": probe(BUBBLES_ON, cue), "shot": f"{shot}-pair.png", "media": media}, + {"width": width, "height": height, "url": f"{self.base}?{width}#{view}", "wait": 1200, "probe": spoken(cue, self.keys["Stage"]), "shot": f"{shot}-pair.png", "media": media}, {"width": width, "height": height, "url": None, "wait": 0, "probe": probe(BUBBLES_GROW), "shot": f"{shot}-grown.png", "media": media}, {"width": width, "height": height, "url": None, "wait": 0, "probe": probe(BUBBLES_DONE), "shot": None, "media": media}, ] @@ -282,7 +290,7 @@ class TestWorkbenchBubbles(HubCase): steps.append({"width": width, "height": height, "url": f"{self.base}?{width}-reloaded#{view}", "wait": 1200, "probe": probe(BUBBLES_KEPT), "shot": f"{shot}-off.png", "media": media}) if width == 1366: steps += [ - {"width": width, "height": height, "url": f"{self.base}?{width}-stream#stream", "wait": 1200, "probe": probe(BUBBLES_ON), "shot": f"{shot}-stream.png", "media": media}, + {"width": width, "height": height, "url": f"{self.base}?{width}-stream#stream", "wait": 1200, "probe": spoken(CUE, ""), "shot": f"{shot}-stream.png", "media": media}, {"width": width, "height": height, "url": None, "wait": 0, "probe": probe(BUBBLES_DONE), "shot": None, "media": media}, {"width": width, "height": height, "url": f"{self.base}?{width}-stream-reloaded#stream", "wait": 1200, "probe": probe(BUBBLES_KEPT), "shot": None, "media": media}, ]