Skip to content

feat: mobile/narrow-viewport layout via @media (max-width: 700px)#61

Open
hkrathore wants to merge 1 commit into
bcurts:mainfrom
hkrathore:feat/mobile-responsive
Open

feat: mobile/narrow-viewport layout via @media (max-width: 700px)#61
hkrathore wants to merge 1 commit into
bcurts:mainfrom
hkrathore:feat/mobile-responsive

Conversation

@hkrathore
Copy link
Copy Markdown

Summary

Adds a single @media (max-width: 700px) block at the end of static/style.css so phones and narrow tabs get a usable layout without introducing a JS breakpoint framework. No behavior change above 700px.

Motivation

The desktop layout is great but falls apart on a phone: decorative labels push the input off-screen, agent-status can cover the settings button when there are a lot of agents, and chat bubbles run edge-to-edge with no breathing room. I've been using this block against a Tailscale-exposed instance from my phone and it's the minimum that makes the app feel right on mobile.

What changed

static/style.css — one new @media (max-width: 700px) block, 75 lines, appended at the end. Adjustments:

  • Tighter header/footer padding, h1 → 15px
  • Hide decorative labels (.discord-pill, .subtitle, .sender-label, .input-hint) that waste horizontal space
  • #agent-status capped at 42vw so a long agent list can't push the settings button off-screen
  • .status-pill / .settings-btn shrunk a notch
  • main#timeline / .message padding reduced for more bubble width
  • .chat-bubble constrained to 100vw - 76px (leaves room for avatar + gutter)
  • Input row: gap: 6px, smaller mic/send horizontal padding

Test plan

  • Selectors verified against the current tree (static/index.html + static/chat.js + static/style.css) — all targets exist
  • Live-tested against a running instance exposed via Tailscale, accessed from an Android phone over several weeks
  • No change to layout at >700px (all rules scoped inside the media query)
  • Maintainer: quick desktop smoke-test to confirm nothing regressed above 700px would be appreciated

Adds a single @media block at the bottom of static/style.css so phones
and narrow tabs get a usable layout without a JS breakpoint framework.

Adjustments at ≤700px:
- tighten header/footer padding and shrink h1 to 15px
- hide decorative labels (.discord-pill, .subtitle, .sender-label,
  .input-hint) that waste horizontal space
- cap #agent-status at 42vw so a long agent list doesn't push the
  settings button off-screen
- shrink .status-pill and .settings-btn paddings
- reduce #timeline and .message padding so chat bubbles have more width
- constrain .chat-bubble to 100vw - 76px (leaves room for avatar + gutter)
- compress the input row: gap 6px, smaller mic/send horizontal padding

No behavior change above 700px. Desktop styling is untouched.
hkrathore added a commit to hkrathore/agentchattr that referenced this pull request Apr 21, 2026
Prior merges auto-resolved style.css in a way that preserved duplicate
rule sets from old and new upstream versions, leaving ~1200 lines of
dead/redundant CSS and 8 same-selector duplicates beyond upstream's own.

Rebases this file on upstream/main's canonical version and re-appends
the clean @media (max-width: 700px) block (same as PR bcurts#61).

No intended local CSS beyond the mobile block; confirmed by diffing
upstream..main and seeing only the @media region as a meaningful
divergence, everything else being duplicated upstream snippets.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant