[PR #478] [MERGED] Launcher consent: Send nothing / Save choices always on screen #2594

Closed
opened 2026-11-02 15:57:28 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/478
Author: @ludovic111
Created: 10/16/2026
Status: ✅ Merged
Merged: 10/16/2026
Merged by: @ludovic111

Base: main ← Head: fix/consent-buttons-reachable


📝 Commits (1)

  • ce49480 Launcher consent: the answers stay at the card's foot, its body scrolls

📊 Changes

1 file changed (+46 additions, -36 deletions)

View changed files

📝 launcher/src/collection.rs (+46 -36)

📄 Description

Fixes #460

What: in the launcher's consent overlay, "Send nothing" and "Save choices" are always on screen, whatever the window height and whether "View what would be sent" is open.

Vanilla: none; this is Horizon-only launcher UI. It follows the design system's dialog plate, and nothing changes visually until the card would be taller than the window.

Why it broke: the whole overlay was the scroll container, so the answers came last, below the JSON. At a 1040×700 viewport (the default window, ~732 pt with the title bar) with the JSON open, the card was 822 px tall from y=24: the answers row ended at y≈818, below the window. Reaching it meant scrolling the overlay, and the JSON (260 px tall, wheel stopped there since #457) sits right under the pointer on the way down.

How: the card is now max_h_full() in the overlay's padding. It holds a scrolling body (ask-body: the question, switches, the "never" line, the link and the JSON) and an answers row with flex_none at its foot. The overlay still stops wheel events from reaching the page behind; it doesn't scroll itself any more.

Verified in the real launcher (debug build on the Mac mini). I measured the layout with a temporary on_children_prepainted print on the card, now removed, with the JSON open via a temporary hook:

viewport JSON body (y, height) answers row (y..bottom)
1040×700 open 25, 590 (scrolls) 615..675 ✔
1040×560 (min) open 25, 450 (scrolls) 475..535 ✔
1040×700 closed 25, 498 523..583 ✔ (as before)
1040×1000 open 25, 796 (fits) 821..881 ✔

The answers end inside the viewport (minus the 24 px padding) in every case. On origin/main at 700 with the JSON open they ended at y≈818.

Not done (needs the Mac mini unlocked): screenshots and real wheel events. The login session was locked the whole time, so screencapture couldn't capture the window and CGEvents didn't reach the app. Once it's unlocked: open the overlay, click "View what would be sent", and check that the buttons stay visible and the body scrolls with the pointer beside the JSON.

Self-check: in launcher/, cargo fmt --check ok; cargo clippy --all-targets --features gpui/runtime_shaders -- -D warnings ok; cargo test --features gpui/runtime_shaders passes (50 + 4 + 1).

🤖 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/478 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/16/2026 **Status:** ✅ Merged **Merged:** 10/16/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/consent-buttons-reachable` --- ### 📝 Commits (1) - [`ce49480`](https://github.com/horizon-rust/horizon/commit/ce49480b3e4c12bcdf02974dc8c16a8ea11328d1) Launcher consent: the answers stay at the card's foot, its body scrolls ### 📊 Changes **1 file changed** (+46 additions, -36 deletions) <details> <summary>View changed files</summary> 📝 `launcher/src/collection.rs` (+46 -36) </details> ### 📄 Description Fixes #460 **What:** in the launcher's consent overlay, "Send nothing" and "Save choices" are always on screen, whatever the window height and whether "View what would be sent" is open. **Vanilla:** none; this is Horizon-only launcher UI. It follows the design system's dialog plate, and nothing changes visually until the card would be taller than the window. **Why it broke:** the whole overlay was the scroll container, so the answers came last, below the JSON. At a 1040×700 viewport (the default window, ~732 pt with the title bar) with the JSON open, the card was 822 px tall from y=24: the answers row ended at y≈818, below the window. Reaching it meant scrolling the overlay, and the JSON (260 px tall, wheel stopped there since #457) sits right under the pointer on the way down. **How:** the card is now `max_h_full()` in the overlay's padding. It holds a scrolling body (`ask-body`: the question, switches, the "never" line, the link and the JSON) and an `answers` row with `flex_none` at its foot. The overlay still stops wheel events from reaching the page behind; it doesn't scroll itself any more. **Verified in the real launcher** (debug build on the Mac mini). I measured the layout with a temporary `on_children_prepainted` print on the card, now removed, with the JSON open via a temporary hook: | viewport | JSON | body (y, height) | answers row (y..bottom) | |---|---|---|---| | 1040×700 | open | 25, 590 (scrolls) | 615..675 ✔ | | 1040×560 (min) | open | 25, 450 (scrolls) | 475..535 ✔ | | 1040×700 | closed | 25, 498 | 523..583 ✔ (as before) | | 1040×1000 | open | 25, 796 (fits) | 821..881 ✔ | The answers end inside the viewport (minus the 24 px padding) in every case. On origin/main at 700 with the JSON open they ended at y≈818. **Not done (needs the Mac mini unlocked):** screenshots and real wheel events. The login session was locked the whole time, so `screencapture` couldn't capture the window and CGEvents didn't reach the app. Once it's unlocked: open the overlay, click "View what would be sent", and check that the buttons stay visible and the body scrolls with the pointer beside the JSON. **Self-check:** in `launcher/`, `cargo fmt --check` ok; `cargo clippy --all-targets --features gpui/runtime_shaders -- -D warnings` ok; `cargo test --features gpui/runtime_shaders` passes (50 + 4 + 1). 🤖 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-02 15:57:28 +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#2594
No description provided.