From 757b401b2dbc6e09200f0ff0c2cb82352857a323 Mon Sep 17 00:00:00 2001 From: Joscha Date: Sat, 9 Mar 2024 18:23:07 +0100 Subject: [PATCH] Increase max username width Long nicks were annoying if the message itself was only a single line and there was enough space left. --- showbits-thermal-printer/src/drawer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/showbits-thermal-printer/src/drawer.rs b/showbits-thermal-printer/src/drawer.rs index ab3ae34..ebd7737 100644 --- a/showbits-thermal-printer/src/drawer.rs +++ b/showbits-thermal-printer/src/drawer.rs @@ -123,7 +123,7 @@ impl Drawer { fn on_chat_message(&mut self, username: String, content: String) -> anyhow::Result<()> { let mut tree = Tree::::new(WHITE); - let max_username_width_in_chars = 12.0; + let max_username_width_in_chars = 32.0; let max_content_height_in_lines = 16.0; let username = Text::new()