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:
parent
e6e2a57d16
commit
757b401b2d
1 changed files with 1 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ impl Drawer {
|
||||||
fn on_chat_message(&mut self, username: String, content: String) -> anyhow::Result<()> {
|
fn on_chat_message(&mut self, username: String, content: String) -> anyhow::Result<()> {
|
||||||
let mut tree = Tree::<Context>::new(WHITE);
|
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 max_content_height_in_lines = 16.0;
|
||||||
|
|
||||||
let username = Text::new()
|
let username = Text::new()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue