notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit 3f1a194983d7334db8db551f181b266bc50e2d1c
parent a8eaea650922288d6884be06484cbc94307dceaf
Author: kernelkind <kernelkind@gmail.com>
Date:   Thu, 11 Sep 2025 17:14:25 -0400

fix: repost desc text size on newline

make the repost desc size small when it is on a newline instead of
inline with the pfps, which was introduced here: eb446376

Signed-off-by: kernelkind <kernelkind@gmail.com>

Diffstat:
Mcrates/notedeck_columns/src/ui/timeline.rs | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/crates/notedeck_columns/src/ui/timeline.rs b/crates/notedeck_columns/src/ui/timeline.rs @@ -1,8 +1,9 @@ use egui::containers::scroll_area::ScrollBarVisibility; -use egui::{vec2, Color32, Direction, Layout, Margin, Pos2, ScrollArea, Sense, Stroke}; +use egui::{vec2, Color32, Direction, Layout, Margin, Pos2, RichText, ScrollArea, Sense, Stroke}; use egui_tabs::TabColor; use enostr::Pubkey; use nostrdb::{Note, ProfileRecord, Transaction}; +use notedeck::fonts::get_font_size; use notedeck::name::get_display_name; use notedeck::ui::is_narrow; use notedeck::{tr_plural, JobsCache, Muted, NotedeckTextStyle}; @@ -829,7 +830,10 @@ fn render_composite_entry( ui.horizontal(|ui| { ui.add_space(48.0); ui.horizontal_wrapped(|ui| { - ui.label(desc); + ui.add(egui::Label::new( + RichText::new(desc) + .size(get_font_size(ui.ctx(), &NotedeckTextStyle::Small)), + )); }); }); }