Launcher: the ping notice keeps its height; status lists the ping

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-22 10:37:31 +02:00
parent 8f738d35ec
commit 9054acfed2
3 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -188,7 +188,7 @@ impl Launcher {
.child("Help make Horizon faster and steadier?"),
)
.child(text(theme::UI).text_color(t.muted).child(
"Horizon can send a few things to its developers. Everything is off until you turn it on, and Settings can change it any time.",
"Horizon can send a few things to its developers. Each switch is off until you turn it on, and Settings can change it any time.",
))
.child(
div()
+4
View File
@@ -1706,9 +1706,11 @@ impl Launcher {
_ => None,
};
let title = "Horizon";
// Never squeezed by the rows below: the ping notice can make it tall.
let mut hero =
div()
.flex()
.flex_none()
.flex_col()
.gap(px(14.))
.pt(px(24.))
@@ -1782,9 +1784,11 @@ impl Launcher {
hero = hero.child(
plate(&t)
.flex()
.flex_none()
.flex_col()
.gap(px(8.))
.p(px(16.))
.w_full()
.max_w(px(640.))
.child(
text(theme::UI)
+1
View File
@@ -278,6 +278,7 @@ pub fn status_json() -> serde_json::Value {
"install_id": consent.install_id,
"waiting": outbox::pending(&home()).len(),
"server": horizon_telemetry::endpoint(),
"ping": PING,
})
}