remove testing msg limit + add top padding
This commit is contained in:
@@ -100,7 +100,7 @@ impl Client {
|
|||||||
}
|
}
|
||||||
ServerMsg::LoadMsgs(msgs) => {
|
ServerMsg::LoadMsgs(msgs) => {
|
||||||
if let Some(msg_area) = &self.channel {
|
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);
|
let msg = msg_widget(msg).add(&mut self.ui);
|
||||||
self.ui[msg_area].children.push(msg.any());
|
self.ui[msg_area].children.push(msg.any());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ pub fn msg_panel(client: &mut Client, network: NetSender) -> impl WidgetFn<Sized
|
|||||||
msg_area
|
msg_area
|
||||||
.clone()
|
.clone()
|
||||||
.scroll()
|
.scroll()
|
||||||
.pad(Padding::x(15))
|
.pad(Padding::x(15).with_top(15))
|
||||||
.height(rest(1)),
|
.height(rest(1)),
|
||||||
send_text
|
send_text
|
||||||
.clone()
|
.clone()
|
||||||
|
|||||||
Reference in New Issue
Block a user