Increase max username width

Long nicks were annoying if the message itself was only a single line
and there was enough space left.
This commit is contained in:
Joscha 2024-03-09 18:23:07 +01:00
parent e6e2a57d16
commit 757b401b2d

View file

@ -123,7 +123,7 @@ impl Drawer {
fn on_chat_message(&mut self, username: String, content: String) -> anyhow::Result<()> {
let mut tree = Tree::<Context>::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()