From 5752fefe3b2bdda574a5e1160ce65c6bf121d1c6 Mon Sep 17 00:00:00 2001 From: hellno Date: Fri, 3 Jul 2026 13:15:16 +0200 Subject: [PATCH] fix(identity): masthead address no longer clips its last chars (E2 follow-up) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The E2 masthead (#182) passed the mono address as `page_header`'s subtitle with a `min_w_0().truncate()`, which — because the header's v_flex sizes to the title's intrinsic width — clipped the already-truncated address to a second ellipsis (`0xf39F…22…` instead of `0xf39F…2266`). The address is short and should never truncate, so pin the subtitle with `flex_shrink_0` instead. Verified in the app: the masthead now renders the full `0xf39F…2266` (matches the golden ref). fmt clean; clippy -D warnings green; page_header has one caller (the masthead). --- crates/deckard-app/src/widgets.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/deckard-app/src/widgets.rs b/crates/deckard-app/src/widgets.rs index 3aef1b6..6580c54 100644 --- a/crates/deckard-app/src/widgets.rs +++ b/crates/deckard-app/src/widgets.rs @@ -526,8 +526,7 @@ pub(crate) fn page_header( .when_some(subtitle, |d, s| { d.child( div() - .min_w_0() - .truncate() + .flex_shrink_0() .text_sm() .text_color(muted) .when_some(subtitle_mono, |d, mono| d.font_family(mono))