notedeck

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

commit 6a08d4b1b2ba8af6031fbd2d72628f50c9df6bfa
parent d6d7e4c35e9a3028c769b633f420aeba485d1d57
Author: William Casarin <jb55@jb55.com>
Date:   Thu, 31 Jul 2025 17:53:40 -0700

ui/note: fix width instabilities because of spacing_mut

TODO: get rid of all spacing_mut in the codebase

Fixes: 9ff5753bcaea ("settings: use timed serializer, handle zoom properly...")

Diffstat:
Mcrates/notedeck_chrome/src/android.rs | 2+-
Mcrates/notedeck_ui/src/note/contents.rs | 6+-----
2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/crates/notedeck_chrome/src/android.rs b/crates/notedeck_chrome/src/android.rs @@ -10,7 +10,7 @@ use notedeck::Notedeck; #[tokio::main] pub async fn android_main(app: AndroidApp) { //use tracing_logcat::{LogcatMakeWriter, LogcatTag}; - use tracing_subscriber::{EnvFilter, prelude::*}; + use tracing_subscriber::{prelude::*, EnvFilter}; std::env::set_var("RUST_BACKTRACE", "full"); //std::env::set_var("DAVE_ENDPOINT", "http://ollama.jb55.com/v1"); diff --git a/crates/notedeck_ui/src/note/contents.rs b/crates/notedeck_ui/src/note/contents.rs @@ -4,7 +4,7 @@ use crate::{ }; use notedeck::{JobsCache, RenderableMedia}; -use egui::{vec2, Color32, Hyperlink, Label, RichText}; +use egui::{Color32, Hyperlink, Label, RichText}; use nostrdb::{BlockType, Mention, Note, NoteKey, Transaction}; use tracing::warn; @@ -42,8 +42,6 @@ impl<'a, 'd> NoteContents<'a, 'd> { impl egui::Widget for &mut NoteContents<'_, '_> { fn ui(self, ui: &mut egui::Ui) -> egui::Response { - ui.spacing_mut().item_spacing = vec2(0.0, 0.0); - if self.options.contains(NoteOptions::ShowNoteClientTop) { render_client(ui, self.note_context.note_cache, self.note); } @@ -160,8 +158,6 @@ pub fn render_note_contents<'a>( return; }; - ui.spacing_mut().item_spacing = vec2(0.0, 0.0); - 'block_loop: for block in blocks.iter(note) { match block.blocktype() { BlockType::MentionBech32 => match block.as_mention().unwrap() {