Panics · P02 Typography: Link takes its handler, an unknown zone reads as UTC and says so, a long highlight query logs

This commit is contained in:
ZacharyZhang-NY committed 2026-10-06 16:02:40 -04:00
1 parent e5166e9e26
commit f46cc4e7c3
11 files changed
+132 -60

No files matched your search

+5 -4
View File
@@ -113,10 +113,11 @@ impl RenderOnce for TwoFactorInput {
)
.children(note)
.children(self.on_recovery.map(|run| {
div().child(
Link::new((id.clone(), "recovery"), "Use a recovery code")
.on_click(move |_, window, cx| run(window, cx)),
)
div().child(Link::new(
(id.clone(), "recovery"),
"Use a recovery code",
move |_, window, cx| run(window, cx),
))
}))
}
}
+6 -3
View File
@@ -48,7 +48,7 @@ pub(super) fn aside(
.text_size(theme.text_size(TextSize::Sm))
.text_color(theme.colors.fg_muted)
.child(words)
.child(Link::new(id, link).on_click(move |_, window, cx| run(window, cx)))
.child(Link::new(id, link, move |_, window, cx| run(window, cx)))
}
/// What a sign-in hands its owner.
@@ -170,8 +170,11 @@ impl RenderOnce for LoginForm {
}),
)
.children(self.on_forgot.map(|run| {
Link::new((id.clone(), "forgot"), "Forgot password?")
.on_click(move |_, window, cx| run(window, cx))
Link::new(
(id.clone(), "forgot"),
"Forgot password?",
move |_, window, cx| run(window, cx),
)
})),
)
.children(
+3 -1
View File
@@ -72,7 +72,9 @@ fn email_step(step: Step, window: &mut Window, cx: &mut App) -> AnyElement {
)
};
let back = back.map(|(label, run)| {
Link::new((id.clone(), "back"), label).on_click(move |_, window, cx| run(window, cx))
Link::new((id.clone(), "back"), label, move |_, window, cx| {
run(window, cx)
})
});
if sent {
let other = other.map(|(label, run)| {