Skip to content

Improve hero feature badge readability on mobile#16

Open
vkarpov15 wants to merge 2 commits into
mainfrom
codex/improve-mobile-layout-for-ai-query-assistant
Open

Improve hero feature badge readability on mobile#16
vkarpov15 wants to merge 2 commits into
mainfrom
codex/improve-mobile-layout-for-ai-query-assistant

Conversation

@vkarpov15
Copy link
Copy Markdown
Member

Motivation

  • Fix the homepage hero feature badge so the multi-line AI Query Assistant · Dashboards · Team Access group renders cleanly and remains readable on small screens.

Description

  • Tweak public/index.html to use a wrapping, max-width-aware inline-flex container with adjusted padding and rounded corners for mobile, hide dot separators on small screens, and render secondary items as chip-like spans while preserving desktop behavior.

Testing

  • Ran npm test, which returned 2 passing and 1 failing test; the failing test is api/track - "uses a dedicated createConnection and caches it across requests" and is unrelated to this HTML/CSS change.

Codex Task

Copilot AI review requested due to automatic review settings April 9, 2026 20:55
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
studio-mongoosejs-io Ready Ready Preview, Comment Apr 9, 2026 11:43pm

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Improves the homepage hero “feature badge” layout so the multi-item label remains readable on small screens by allowing wrapping and adjusting styling for mobile while preserving the desktop presentation.

Changes:

  • Updated the hero badge container to flex-wrap with mobile-friendly padding and corner radius.
  • Hid the dot separators on small screens and rendered secondary items as chip-like spans for better mobile readability.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread public/index.html
Comment on lines +111 to +113
<span class="hidden text-gray-400 sm:inline">·</span>
<span class="rounded-full bg-slate-50 px-2 py-0.5 text-gray-700 sm:bg-transparent sm:px-0 sm:py-0">Dashboards</span>
<span class="hidden text-gray-400 sm:inline">·</span>
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The middle-dot separators are purely decorative but will be announced by screen readers on desktop (sm+). Consider adding aria-hidden="true" (or role="presentation") to these separator spans so they don’t add noise to assistive tech output.

Suggested change
<span class="hidden text-gray-400 sm:inline">·</span>
<span class="rounded-full bg-slate-50 px-2 py-0.5 text-gray-700 sm:bg-transparent sm:px-0 sm:py-0">Dashboards</span>
<span class="hidden text-gray-400 sm:inline">·</span>
<span class="hidden text-gray-400 sm:inline" aria-hidden="true">·</span>
<span class="rounded-full bg-slate-50 px-2 py-0.5 text-gray-700 sm:bg-transparent sm:px-0 sm:py-0">Dashboards</span>
<span class="hidden text-gray-400 sm:inline" aria-hidden="true">·</span>

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants