From f30d76cb356316bbb7e88949903ecd0afbdb6181 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Sat, 28 Nov 2026 03:51:43 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20settings=20header=20statu?= =?UTF-8?q?s,=20ban=20and=20report=20reasons,=20link=20preview=20title=20a?= =?UTF-8?q?nd=20description=20draw=20emoji=20too?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/client/src/gui/builder/access.rs | 7 +++++-- crates/client/src/gui/builder/reports.rs | 10 ++++++++-- crates/client/src/gui/community_settings.rs | 7 +++++-- crates/client/src/gui/media_view.rs | 10 ++++++++-- crates/client/src/gui/settings_page.rs | 7 +++++-- 5 files changed, 31 insertions(+), 10 deletions(-) diff --git a/crates/client/src/gui/builder/access.rs b/crates/client/src/gui/builder/access.rs index b1efeea..39e77f7 100644 --- a/crates/client/src/gui/builder/access.rs +++ b/crates/client/src/gui/builder/access.rs @@ -134,8 +134,11 @@ fn ban_row(ban: &ServerBan, entity: &Entity, palette: Palette) -> Div { div() .text_size(text(text::CAPTION)) .text_color(palette.muted) - .truncate() - .child(reason.clone()) + .min_w_0() + .child(super::super::glyph::line( + reason.clone().into(), + super::super::text(super::super::style::text::CAPTION), + )) })), ) .child(icon_button( diff --git a/crates/client/src/gui/builder/reports.rs b/crates/client/src/gui/builder/reports.rs index e9b81a8..1e8de2f 100644 --- a/crates/client/src/gui/builder/reports.rs +++ b/crates/client/src/gui/builder/reports.rs @@ -297,7 +297,10 @@ impl Yumush { div() .text_size(text_fn(text::LABEL)) .text_color(palette.body) - .child(report.reason.clone()), + .child(super::super::glyph::wrapped( + report.reason.clone().into(), + super::super::text(super::super::style::text::LABEL), + )), ) .children(report.body.as_ref().map(|body| { div() @@ -308,7 +311,10 @@ impl Yumush { .text_size(text_fn(text::CAPTION)) .text_color(palette.muted) .line_clamp(2) - .child(body.clone()) + .child(super::super::glyph::wrapped( + body.clone().into(), + super::super::text(super::super::style::text::CAPTION), + )) })) .children(handled) .children((!actions.is_empty()).then(|| { diff --git a/crates/client/src/gui/community_settings.rs b/crates/client/src/gui/community_settings.rs index 751b25a..0316155 100644 --- a/crates/client/src/gui/community_settings.rs +++ b/crates/client/src/gui/community_settings.rs @@ -712,8 +712,11 @@ fn ban_row( div() .text_size(text(text_token::CAPTION)) .text_color(palette.muted) - .truncate() - .child(reason) + .min_w_0() + .child(super::glyph::line( + reason.into(), + super::text(super::style::text::CAPTION), + )) })), ) .child( diff --git a/crates/client/src/gui/media_view.rs b/crates/client/src/gui/media_view.rs index af77f40..722d75b 100644 --- a/crates/client/src/gui/media_view.rs +++ b/crates/client/src/gui/media_view.rs @@ -855,14 +855,20 @@ fn embed_view(loaded: &LoadedEmbed, palette: Palette) -> impl IntoElement { .cursor_pointer() .hover(|style| style.underline()) .on_click(move |_, _, cx| cx.open_url(&url)) - .child(title) + .child(super::glyph::wrapped( + title.into(), + super::text(super::style::text::UI), + )) })) .children(embed.description.clone().map(|description| { div() .text_size(text(text::LABEL)) .text_color(palette.body) .line_clamp(3) - .child(description) + .child(super::glyph::wrapped( + description.into(), + super::text(super::style::text::LABEL), + )) })) .children(image) } diff --git a/crates/client/src/gui/settings_page.rs b/crates/client/src/gui/settings_page.rs index 4d472e4..8bbcd04 100644 --- a/crates/client/src/gui/settings_page.rs +++ b/crates/client/src/gui/settings_page.rs @@ -777,8 +777,11 @@ pub(super) fn picture_card(picture: Picture, entity: &Entity, palette: P div() .text_size(text(text::CAPTION)) .text_color(palette.muted) - .truncate() - .child(subtitle), + .min_w_0() + .child(super::glyph::line( + subtitle.into(), + super::text(super::style::text::CAPTION), + )), ) }), )