Skip to content

fix: adjust info banner for mobile screens#501

Merged
cyrilledaily merged 2 commits intomainfrom
fix/banner-mobile-height
Feb 17, 2026
Merged

fix: adjust info banner for mobile screens#501
cyrilledaily merged 2 commits intomainfrom
fix/banner-mobile-height

Conversation

@m4xim1nus
Copy link
Collaborator

Summary

  • Fix the info banner (BandeauInfo) overlapping with the navbar on mobile: top-12 (48px) was misaligned with the mobile navbar height h-16 (64px), changed to top-16
  • Increase vertical and left padding on mobile (py-2 pl-2) so wrapped text has proper spacing
  • Desktop layout unchanged via lg: breakpoint variants

Test plan

  • Open on mobile (or DevTools responsive mode) and verify the banner displays correctly with multi-line text
  • Verify the close button (✕) stays vertically centered
  • Verify desktop layout is unchanged

🤖 Generated with Claude Code

The banner was positioned at top-12 (48px) while the mobile navbar is
h-16 (64px), causing overlap. Increased vertical and left padding on
mobile for better readability when text wraps to multiple lines.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Contributor

:octocat: Preview is deploying...

Please wait while the preview is deploying on Clever Cloud...

ℹ️ Name 🔗 Infos & links
🌱 Deploying commit 9fa1777
👁️ Preview Generating preview app...

Copy link
Collaborator

@cyrilledaily cyrilledaily left a comment

Choose a reason for hiding this comment

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

LGTM — straightforward fix, well-scoped.

The bug: The mobile navbar is h-16 (64px) but the banner was positioned at top-12 (48px), so it was overlapping by 16px. On desktop the navbar is h-20 (80px) and the banner used lg:top-20 which was already correct.

The fix: top-12top-16 aligns with the mobile navbar height. The extra padding (py-2 pl-2 on mobile, preserved with lg:py-1 lg:pl-1 on desktop) is a nice touch for multi-line text readability on small screens.

One minor note: the <a> element was reformatted from one line to multi-line and underline font-semibold was reordered to font-semibold underline — purely cosmetic but consistent with Tailwind's recommended class ordering (typography before decoration). No functional change.

Clean and minimal. 👍

@cyrilledaily cyrilledaily merged commit d0b6ad8 into main Feb 17, 2026
2 of 3 checks passed
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.

2 participants