Skip to content

fix(ui): polish select contrast, mobile safe-area bottom, and error copy#85

Open
adityakulraj wants to merge 8 commits intocomnam90:developfrom
adityakulraj:feature/adkunwar-ui-polish-issue-82
Open

fix(ui): polish select contrast, mobile safe-area bottom, and error copy#85
adityakulraj wants to merge 8 commits intocomnam90:developfrom
adityakulraj:feature/adkunwar-ui-polish-issue-82

Conversation

@adityakulraj
Copy link

Summary

  • add explicit dark/light colors for native select controls to improve Windows dark mode readability
  • add padding-bottom: env(safe-area-inset-bottom) to .map-container so content isn’t clipped by iOS home indicator
  • update error copy to active voice: "The map failed to load."

Testing

  • git diff --check
  • attempted npm run test
    • blocked by local npm install issues in this environment (empty node_modules/esbuild and prior npm internal error)

Closes #82

comnam90 and others added 8 commits February 18, 2026 10:33
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
CHANGELOG.md — New file documenting project history from v1.0.0 through v1.2.0
GITFLOW_RELEASE_GUIDE.md — Added warning to verify PR base branch is `main` in Step 3; updated current release status to v1.2.0
data/regions/azure/azure_poland_central.yaml + functions/regions.json — Azure Poland Central (Warsaw) region with VDC for Microsoft 365 and Entra ID support
package.json / package-lock.json — Version bumped to 1.2.0; updated hono (4.11.7 → 4.12.7), wrangler (4.59.1 → 4.76.0), and transitive Cloudflare dependencies
@adityakulraj
Copy link
Author

@comnam90 would appreciate your review when you have time. Thank you!

@comnam90 comnam90 requested a review from Copilot March 24, 2026 23:24
@comnam90 comnam90 changed the base branch from main to develop March 24, 2026 23:25
Copy link

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

UI polish updates to the Hugo single-file SPA (layouts/index.html) to improve native control readability, mobile safe-area layout, and error messaging.

Changes:

  • Added bottom safe-area padding to the map container to avoid iOS home-indicator clipping.
  • Added explicit dark/light colors for native <select> controls to improve dark-mode readability.
  • Updated map load error copy to “The map failed to load.”

Comment on lines 77 to +87
/* Select dropdown styling */
select {
background-color: #1e293b;
color: #ffffff;
transition: all 0.2s ease;
cursor: pointer;
}
.light select {
background-color: #ffffff;
color: #0f172a;
}
Copy link

Copilot AI Mar 24, 2026

Choose a reason for hiding this comment

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

The new select { background-color; color } rules are likely overridden by the existing Tailwind utility classes on #providerFilter (bg-slate-800/80, text-white, etc.), since class selectors have higher specificity than the element selector. As a result, this change may not affect the select’s rendered colors. Consider either removing the conflicting bg-*/text-* classes from the <select> and relying on these CSS rules, or increasing CSS specificity (or using !important as a last resort) so the explicit colors reliably apply.

Copilot uses AI. Check for mistakes.
Comment on lines 36 to 40
.map-container {
flex: 1;
min-height: 0;
padding-bottom: env(safe-area-inset-bottom);
}
Copy link

Copilot AI Mar 24, 2026

Choose a reason for hiding this comment

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

padding-bottom: env(safe-area-inset-bottom) is applied to .map-container, but the same element also has p-0 sm:p-4 lg:p-6 classes in the markup, which set padding-bottom as well. Depending on the generated CSS order (and at sm/lg breakpoints), the safe-area padding can be overridden, and iOS landscape (>=640px) could still be clipped. Consider moving the safe-area padding to a wrapper element that doesn’t also apply p-* utilities, or make the bottom padding explicitly combine safe-area + existing padding (e.g., via max()/calc() or per-breakpoint rules).

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants