remove testing msg limit + add top padding

This commit is contained in:
2025-11-21 13:39:02 -05:00
parent 8eda92f5f5
commit 775d8c4891
2 changed files with 2 additions and 2 deletions

View File

@@ -100,7 +100,7 @@ impl Client {
}
ServerMsg::LoadMsgs(msgs) => {
if let Some(msg_area) = &self.channel {
for msg in msgs.into_iter().take(10) {
for msg in msgs {
let msg = msg_widget(msg).add(&mut self.ui);
self.ui[msg_area].children.push(msg.any());
}

View File

@@ -161,7 +161,7 @@ pub fn msg_panel(client: &mut Client, network: NetSender) -> impl WidgetFn<Sized
msg_area
.clone()
.scroll()
.pad(Padding::x(15))
.pad(Padding::x(15).with_top(15))
.height(rest(1)),
send_text
.clone()