forge
Explore
Log in

Don't you dare go Hollow

Settings header status, ban and report reasons, link preview title and description draw emoji too

Browse files at this commit

f30d76cb356316bbb7e88949903ecd0afbdb6181Ahmet Kaan GümüşParent: 7537bce
  • fix
    • settings header status, ban and report reasons, link preview title and description draw emoji too
Show full message
🐛 fix: settings header status, ban and report reasons, link preview title and description draw emoji too
crates/client/src/gui/builder/access.rsmodified+5 -2
@@ -134,8 +134,11 @@ fn ban_row(ban: &ServerBan, entity: &Entity<Yumush>, palette: Palette) -> Div {
134 div()134 div()
135 .text_size(text(text::CAPTION))135 .text_size(text(text::CAPTION))
136 .text_color(palette.muted)136 .text_color(palette.muted)
137- .truncate()137+ .min_w_0()
138- .child(reason.clone())138+ .child(super::super::glyph::line(
139+ reason.clone().into(),
140+ super::super::text(super::super::style::text::CAPTION),
141+ ))
139 })),142 })),
140 )143 )
141 .child(icon_button(144 .child(icon_button(
crates/client/src/gui/builder/reports.rsmodified+8 -2
@@ -297,7 +297,10 @@ impl Yumush {
297 div()297 div()
298 .text_size(text_fn(text::LABEL))298 .text_size(text_fn(text::LABEL))
299 .text_color(palette.body)299 .text_color(palette.body)
300- .child(report.reason.clone()),300+ .child(super::super::glyph::wrapped(
301+ report.reason.clone().into(),
302+ super::super::text(super::super::style::text::LABEL),
303+ )),
301 )304 )
302 .children(report.body.as_ref().map(|body| {305 .children(report.body.as_ref().map(|body| {
303 div()306 div()
@@ -308,7 +311,10 @@ impl Yumush {
308 .text_size(text_fn(text::CAPTION))311 .text_size(text_fn(text::CAPTION))
309 .text_color(palette.muted)312 .text_color(palette.muted)
310 .line_clamp(2)313 .line_clamp(2)
311- .child(body.clone())314+ .child(super::super::glyph::wrapped(
315+ body.clone().into(),
316+ super::super::text(super::super::style::text::CAPTION),
317+ ))
312 }))318 }))
313 .children(handled)319 .children(handled)
314 .children((!actions.is_empty()).then(|| {320 .children((!actions.is_empty()).then(|| {
crates/client/src/gui/community_settings.rsmodified+5 -2
@@ -712,8 +712,11 @@ fn ban_row(
712 div()712 div()
713 .text_size(text(text_token::CAPTION))713 .text_size(text(text_token::CAPTION))
714 .text_color(palette.muted)714 .text_color(palette.muted)
715- .truncate()715+ .min_w_0()
716- .child(reason)716+ .child(super::glyph::line(
717+ reason.into(),
718+ super::text(super::style::text::CAPTION),
719+ ))
717 })),720 })),
718 )721 )
719 .child(722 .child(
crates/client/src/gui/media_view.rsmodified+8 -2
@@ -855,14 +855,20 @@ fn embed_view(loaded: &LoadedEmbed, palette: Palette) -> impl IntoElement {
855 .cursor_pointer()855 .cursor_pointer()
856 .hover(|style| style.underline())856 .hover(|style| style.underline())
857 .on_click(move |_, _, cx| cx.open_url(&url))857 .on_click(move |_, _, cx| cx.open_url(&url))
858- .child(title)858+ .child(super::glyph::wrapped(
859+ title.into(),
860+ super::text(super::style::text::UI),
861+ ))
859 }))862 }))
860 .children(embed.description.clone().map(|description| {863 .children(embed.description.clone().map(|description| {
861 div()864 div()
862 .text_size(text(text::LABEL))865 .text_size(text(text::LABEL))
863 .text_color(palette.body)866 .text_color(palette.body)
864 .line_clamp(3)867 .line_clamp(3)
865- .child(description)868+ .child(super::glyph::wrapped(
869+ description.into(),
870+ super::text(super::style::text::LABEL),
871+ ))
866 }))872 }))
867 .children(image)873 .children(image)
868 }874 }
crates/client/src/gui/settings_page.rsmodified+5 -2
@@ -777,8 +777,11 @@ pub(super) fn picture_card(picture: Picture, entity: &Entity<Yumush>, palette: P
777 div()777 div()
778 .text_size(text(text::CAPTION))778 .text_size(text(text::CAPTION))
779 .text_color(palette.muted)779 .text_color(palette.muted)
780- .truncate()780+ .min_w_0()
781- .child(subtitle),781+ .child(super::glyph::line(
782+ subtitle.into(),
783+ super::text(super::style::text::CAPTION),
784+ )),
782 )785 )
783 }),786 }),
784 )787 )