[PR #39] [MERGED] Hub: draw the moon below the header so it stops covering Download #41

Closed
opened 2026-11-03 04:02:35 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: fix/hub-moon-button


📝 Commits (1)

  • 1023708 Hub: draw the moon below the header so it stops covering Download

📊 Changes

2 files changed (+2 additions, -2 deletions)

View changed files

📝 app/hub/market/page.tsx (+1 -1)
📝 app/hub/page.tsx (+1 -1)

📄 Description

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

Players reported (2026-11-01) that on /hub the decorative moon covers the Download button. Fix only, no design change.

Cause. PixelAurora draws its moon at moonTop = 32 px, right where the fixed header's buttons are. The header is z-50, so clicks already reached the button, but the button's background is translucent (bg-white/10), so the cream moon showed through it and hid the label.

Fix. /hub and /hub/market now pass moonTop={104}, the value the mod pages (app/mods/[id]/page.tsx) already use: the moon sits just below the 72 px header. Same moon, same size, same horizontal place; two one-line changes.

Before / after (production build, Chromium; moon box from the canvas pixels, button box from getBoundingClientRect, hit test with document.elementFromPoint at the button's centre):

Width Before: moon (x, y) Before After: moon (x, y) After
360 300–333, 33–69 moon over the menu button 300–333, 105–141 Download and menu clear, hit = Download
768 708–741, 33–69 moon over the menu button 708–741, 105–141 clear, hit = Download
1280 1128–1172, 32–80 moon over the "Download" label (button 1078–1176, 18–54) 1128–1172, 104–152 clear, hit = Download
1920 1422–1488, 30–102 moon over the "Download" label (button 1398–1496, 18–54) 1422–1488, 102–174 clear, hit = Download

/hub/market measured the same. The moon stays clear of the hero text at every width. npm run lint and npm run build pass.

🤖 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-site/pull/39 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/hub-moon-button` --- ### 📝 Commits (1) - [`1023708`](https://github.com/horizon-rust/horizon-site/commit/102370880db951cde6d135893c25529f001e7655) Hub: draw the moon below the header so it stops covering Download ### 📊 Changes **2 files changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `app/hub/market/page.tsx` (+1 -1) 📝 `app/hub/page.tsx` (+1 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Players reported (2026-11-01) that on /hub the decorative moon covers the Download button. Fix only, no design change. **Cause.** `PixelAurora` draws its moon at `moonTop = 32` px, right where the fixed header's buttons are. The header is `z-50`, so clicks already reached the button, but the button's background is translucent (`bg-white/10`), so the cream moon showed through it and hid the label. **Fix.** `/hub` and `/hub/market` now pass `moonTop={104}`, the value the mod pages (`app/mods/[id]/page.tsx`) already use: the moon sits just below the 72 px header. Same moon, same size, same horizontal place; two one-line changes. **Before / after** (production build, Chromium; moon box from the canvas pixels, button box from `getBoundingClientRect`, hit test with `document.elementFromPoint` at the button's centre): | Width | Before: moon (x, y) | Before | After: moon (x, y) | After | |---|---|---|---|---| | 360 | 300–333, 33–69 | moon over the menu button | 300–333, 105–141 | Download and menu clear, hit = Download | | 768 | 708–741, 33–69 | moon over the menu button | 708–741, 105–141 | clear, hit = Download | | 1280 | 1128–1172, 32–80 | moon over the "Download" label (button 1078–1176, 18–54) | 1128–1172, 104–152 | clear, hit = Download | | 1920 | 1422–1488, 30–102 | moon over the "Download" label (button 1398–1496, 18–54) | 1422–1488, 102–174 | clear, hit = Download | `/hub/market` measured the same. The moon stays clear of the hero text at every width. `npm run lint` and `npm run build` pass. 🤖 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 04:02:35 +07:00
Sign in to join this conversation.
No labels
pull-request
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-site#41
No description provided.