[PR #7679] [MERGED] launcher: Home's head and the top bar under 1280 px (glass) #7756

Closed
opened 2026-11-03 07:23:45 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7679
Author: @ludovic111
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: fix/launcher-glass-home-narrow


📝 Commits (1)

  • b5aaa3c launcher: Home's head and the top bar under 1280 px (glass)

📊 Changes

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

View changed files

📝 launcher/src/frame.rs (+10 -2)
📝 launcher/src/glass_home.rs (+11 -7)
📝 launcher/src/main.rs (+4 -0)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

A fix to the launcher redesign's dark (glass) look, from Anthony S.'s mockup (playhorizon.dev/launcher). Design reviewer: dezer-x. Follows #7613 and #7566, now on main.

Problem

Under 1280 px of window width:

  • Home's invite code field covered the folder button.
  • The top bar pushed the settings button out of the window.

The mockup changes its layout at Tailwind's xl (1280 px); the port didn't.

Fix, as the mockup's CSS

  • Home's head (flex-col … xl:flex-row, JoinFriend: w-full xl:w-[340px]): under 1280 px the invite code goes under the actions, 32 px below, as wide as the page.
  • Top bar (min-w-0 … xl:shrink-0 around Tabs, which is overflow-x-auto): under 1280 px the pages give way to the buttons on the right and scroll sideways.
  • The launcher keeps the window's width from the last frame (window_width) for both.

At 1280 px and wider, nothing changes.

Above: before, at 1180 px. Below: after, at 1100 px.

before and after

(The old-style tabs under the head are main's, the glass ones are in #7627.)

Self-check

pr_ready (tools/pr_ready.py --quick on ludovics-mac-mini)

Check Result
Scope ✅ 3 files, +25 −9
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 614 passed (3 min 20 s)
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
doc tests ➖ no crate touched
content root tests ➖ content root untouched
mod API up to date ➖ native hooks untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ✅ (1 s)
launcher clippy ✅ (1 s)
launcher tests ❌ 451 passed, 1 failed (7 s)
Parity ➖ 18 affected, to run in CI (--quick): anvil_turtle_egg, armor_stand_frost, armor_stand_turtle_egg, arrow_wind_charge, boat_authority, boat_paddle_reset, boat_submerged, dragon_contacts, dragon_render, enchantment_components, fishing_hook_entities, inline_object and 6 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

The one failed launcher test is backend::tests::prepared_versions_get_what_the_asset_store_adds_without_preparing_again, which this PR doesn't touch: it passed on the rerun (cargo test in launcher/: 452 passed).

🤖 Generated with Claude Code


🔄 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/horizon-rust/horizon/pull/7679 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/launcher-glass-home-narrow` --- ### 📝 Commits (1) - [`b5aaa3c`](https://github.com/horizon-rust/horizon/commit/b5aaa3c0bf27090dd9d666d23301d37a4a044bb5) launcher: Home's head and the top bar under 1280 px (glass) ### 📊 Changes **3 files changed** (+25 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `launcher/src/frame.rs` (+10 -2) 📝 `launcher/src/glass_home.rs` (+11 -7) 📝 `launcher/src/main.rs` (+4 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. A fix to the launcher redesign's dark (glass) look, from Anthony S.'s mockup (playhorizon.dev/launcher). Design reviewer: dezer-x. Follows #7613 and #7566, now on main. ## Problem Under 1280 px of window width: - Home's invite code field covered the folder button. - The top bar pushed the settings button out of the window. The mockup changes its layout at Tailwind's `xl` (1280 px); the port didn't. ## Fix, as the mockup's CSS - **Home's head** (`flex-col … xl:flex-row`, `JoinFriend`: `w-full xl:w-[340px]`): under 1280 px the invite code goes under the actions, 32 px below, as wide as the page. - **Top bar** (`min-w-0 … xl:shrink-0` around `Tabs`, which is `overflow-x-auto`): under 1280 px the pages give way to the buttons on the right and scroll sideways. - The launcher keeps the window's width from the last frame (`window_width`) for both. At 1280 px and wider, nothing changes. Above: before, at 1180 px. Below: after, at 1100 px. ![before and after](https://raw.githubusercontent.com/horizon-rust/horizon/screenshots/launcher-redesign-4/pr9-narrow/before-after.png) (The old-style tabs under the head are main's, the glass ones are in #7627.) ## Self-check **pr_ready** (`tools/pr_ready.py --quick` on ludovics-mac-mini) | Check | Result | | --- | --- | | Scope | ✅ 3 files, +25 −9 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 614 passed (3 min 20 s) | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | doc tests | ➖ no crate touched | | content root tests | ➖ content root untouched | | mod API up to date | ➖ native hooks untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ✅ (1 s) | | launcher clippy | ✅ (1 s) | | launcher tests | ❌ 451 passed, 1 failed (7 s) | | Parity | ➖ 18 affected, to run in CI (--quick): anvil_turtle_egg, armor_stand_frost, armor_stand_turtle_egg, arrow_wind_charge, boat_authority, boat_paddle_reset, boat_submerged, dragon_contacts, dragon_render, enchantment_components, fishing_hook_entities, inline_object and 6 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | The one failed launcher test is `backend::tests::prepared_versions_get_what_the_asset_store_adds_without_preparing_again`, which this PR doesn't touch: it passed on the rerun (`cargo test` in launcher/: 452 passed). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 07:23:45 +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
horizon-rust/horizon#7756
No description provided.