Make the server WebUI usable on phone viewports #10
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The server-rendered WebUI works well on desktop but is near-unusable on a
phone. Pages live under
server/templates/(login.html,my_cases.html,case_recordings.html,case_page.html); there are no separate CSS files —styles are inline
<style>blocks per template.Root causes (verified)
<meta charset="utf-8">and no<meta name="viewport" content="width=device-width, initial-scale=1">—
login.html:4,my_cases.html:6,case_recordings.html:5,case_page.html:6. Without it, mobile browsers lay the page out in a~980px virtual canvas and zoom out, so all text and controls render tiny.
body { max-width: 900px }onmy_cases.html:9,case_recordings.html:8, andcase_page.html:11.@mediagrep overserver/templates/returns zero matches; no layout adapts to narrow widths.
display: grid; grid-template-columns: 1fr auto(my_cases.html:19) andflex action bars (
.bulk-bar,.required-bar) that stay side-by-side onnarrow screens.
padding: 0.3em(
case_recordings.html:56,58) and the audio player has fixed-width controls(
.seek { max-width: 6em },.time { min-width: 5.5em }—case_recordings.html:59-60),below the ~44px touch-target guidance.
Acceptance
width=device-width, initial-scale=1viewport meta tag.my_cases,case_recordings, andcase_pageare readable and operable on a ~390px-wide viewport without horizontal scrolling or pinch-zoom.Claim (unverified): no JS changes are required; the fixes are CSS-only
(viewport tag plus
@mediabreakpoints in the existing inline<style>blocks). To be confirmed when the work is scoped.