[PR #6941] [MERGED] fix(ui): make mobile topbar a compact desktop-style bar #7395

Closed
opened 2026-10-23 04:19:21 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6941
Author: @Gunterlie
Created: 10/1/2026
Status: ✅ Merged
Merged: 10/1/2026
Merged by: @Gunterlie

Base: staging ← Head: fix/mobile-topbar-alignment


📝 Commits (2)

  • 2c836bc fix(ui): make mobile topbar a compact desktop-style bar
  • 8e3a33a test(ui): keep topbar sizing assertion inside the phone breakpoint

📊 Changes

4 files changed (+25 additions, -3 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 packages/client/src/components/layout/TopBar.tsx (+3 -3)
📝 packages/client/src/styles/globals.css (+13 -0)
📝 scripts/regressions/music-dj-and-floating-ui.regression.ts (+7 -0)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

No linked issue yet (maintainer-requested UI fix; an issue can be opened if needed).

Why this change

On phones, every visible top-bar control (Home, Chats, the overflow menu) stretched with flex: 1 1 0, so the three icons were spread unevenly across the whole bar with a large hole in the middle, and the active background became a wide bar. The mobile top bar should look like a small version of the desktop one.

What changed

  • Phones (max-width: 639px): top-bar buttons have a fixed 3.5rem × 2.25rem size (wide, finger-sized, inside the unchanged 48 px bar) with an 0.5rem gap, matching the desktop button style (rounded active background + short underline).
  • Home and Chats stay at the left; the overflow menu is pushed to the right edge with ml-auto.
  • The overflow icon is now a hamburger (Menu) instead of three dots.
  • Icon sizes are unchanged.
  • Desktop is unchanged: the new CSS is phone-only and the menu button stays sm:hidden.
  • music-dj-and-floating-ui regression pins the menu icon, right alignment, and fixed phone button size.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Agent-run checks: pnpm exec tsx scripts/regressions/music-dj-and-floating-ui.regression.ts passes; Prettier check on touched TS files; git diff --check. Full pnpm check was not run locally — relying on CI.

Manual verification notes

Agent took Playwright screenshots on a local dev instance (dark theme): at 390 px and 360 px, Home (60×38) and Chats (60×38) sit at the left and the hamburger at the right; the open menu shows the same active background. At 1440 px the desktop top bar is unchanged (34×34 buttons).

To verify by hand:

  • Manually verify on a real phone that Home and Chats are at the left, the hamburger is at the right, and all three are easy to tap.
  • Manually verify the active background and underline look right in light and dark mode.
  • Manually verify the hamburger menu opens and lists the panels.
  • Manually verify the desktop top bar is unchanged.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

CHANGELOG [Unreleased] entry added. No docs changes.

UI evidence (if applicable)

Screenshots to be attached (390 px before/after, menu open, 1440 px desktop).

Summary by CodeRabbit

  • Style
    • Grouped Home and Chats on the left side of the phone top bar, with a menu button on the right.
    • Set phone top-bar buttons to a consistent size instead of stretching them across the bar.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/6941 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 10/1/2026 **Status:** ✅ Merged **Merged:** 10/1/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `fix/mobile-topbar-alignment` --- ### 📝 Commits (2) - [`2c836bc`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2c836bc9959cbf02ad00076642f07db8539242d4) fix(ui): make mobile topbar a compact desktop-style bar - [`8e3a33a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8e3a33a4a0180151ae66cd27273c3d1bb595bee2) test(ui): keep topbar sizing assertion inside the phone breakpoint ### 📊 Changes **4 files changed** (+25 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `packages/client/src/components/layout/TopBar.tsx` (+3 -3) 📝 `packages/client/src/styles/globals.css` (+13 -0) 📝 `scripts/regressions/music-dj-and-floating-ui.regression.ts` (+7 -0) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue No linked issue yet (maintainer-requested UI fix; an issue can be opened if needed). ## Why this change On phones, every visible top-bar control (Home, Chats, the overflow menu) stretched with `flex: 1 1 0`, so the three icons were spread unevenly across the whole bar with a large hole in the middle, and the active background became a wide bar. The mobile top bar should look like a small version of the desktop one. ## What changed - Phones (`max-width: 639px`): top-bar buttons have a fixed `3.5rem × 2.25rem` size (wide, finger-sized, inside the unchanged 48 px bar) with an `0.5rem` gap, matching the desktop button style (rounded active background + short underline). - Home and Chats stay at the left; the overflow menu is pushed to the right edge with `ml-auto`. - The overflow icon is now a hamburger (`Menu`) instead of three dots. - Icon sizes are unchanged. - Desktop is unchanged: the new CSS is phone-only and the menu button stays `sm:hidden`. - `music-dj-and-floating-ui` regression pins the menu icon, right alignment, and fixed phone button size. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` Agent-run checks: `pnpm exec tsx scripts/regressions/music-dj-and-floating-ui.regression.ts` passes; Prettier check on touched TS files; `git diff --check`. Full `pnpm check` was not run locally — relying on CI. ### Manual verification notes Agent took Playwright screenshots on a local dev instance (dark theme): at 390 px and 360 px, Home (60×38) and Chats (60×38) sit at the left and the hamburger at the right; the open menu shows the same active background. At 1440 px the desktop top bar is unchanged (34×34 buttons). To verify by hand: - Manually verify on a real phone that Home and Chats are at the left, the hamburger is at the right, and all three are easy to tap. - Manually verify the active background and underline look right in light and dark mode. - Manually verify the hamburger menu opens and lists the panels. - Manually verify the desktop top bar is unchanged. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) CHANGELOG `[Unreleased]` entry added. No docs changes. ## UI evidence (if applicable) Screenshots to be attached (390 px before/after, menu open, 1440 px desktop). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Style** * Grouped Home and Chats on the left side of the phone top bar, with a menu button on the right. * Set phone top-bar buttons to a consistent size instead of stretching them across the bar. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:19:21 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#7395
No description provided.