commit 4a4371912fac279ba4f2a231f63fa927edfddb4e
parent efcc0814589fd9241a69930f586ae89247e31e0b
Author: William Casarin <jb55@jb55.com>
Date: Tue, 17 Feb 2026 15:34:27 -0800
fix text clipping in chat by overriding StripBuilder truncate mode
StripBuilder with clip=true sets TextWrapMode::Truncate on the
cell style, causing all text to truncate instead of wrapping
when the window is narrowed. Override to Wrap at dave UI entry.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/crates/notedeck_dave/src/ui/dave.rs b/crates/notedeck_dave/src/ui/dave.rs
@@ -236,6 +236,9 @@ impl<'a> DaveUi<'a> {
/// The main render function. Call this to render Dave
pub fn ui(&mut self, app_ctx: &mut AppContext, ui: &mut egui::Ui) -> DaveResponse {
+ // Override Truncate wrap mode that StripBuilder sets when clip=true
+ ui.style_mut().wrap_mode = Some(egui::TextWrapMode::Wrap);
+
// Skip top buttons in compact mode (scene panel has its own controls)
let action = if self.compact {
None