notedeck

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

commit 8f63546524bfc6661f35bf30c174eb693aa2851e
parent 90975180f5de04d31615c4cffc358cee025c7354
Author: William Casarin <jb55@jb55.com>
Date:   Thu, 24 Jul 2025 09:11:12 -0700

ui: wrap reply description

This is similar to our fix in:

- Fixes: ee85b754dd86 ("Fix text wrapping issues")

Where removing the ui.horizontal call fixes subsequent main wrap layout
issues. It's still not clear to me where wrap state is getting mutated
where it would affect subsequent ui calls...

Fixes: https://github.com/damus-io/notedeck/issues/892
Changelog-Fixed: Fixed wrapping issues in Notes & Replies timeslines
Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mcrates/notedeck_ui/src/note/mod.rs | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/crates/notedeck_ui/src/note/mod.rs b/crates/notedeck_ui/src/note/mod.rs @@ -498,7 +498,8 @@ impl<'a, 'd> NoteView<'a, 'd> { profile, self.show_unread_indicator, ); - ui.horizontal(|ui| 's: { + + ui.horizontal_wrapped(|ui| 's: { ui.spacing_mut().item_spacing.x = if is_narrow(ui.ctx()) { 1.0 } else { 2.0 }; let note_reply = self