6
1
mirror of https://git.mills.io/saltyim/saltyim.git synced 2024-06-28 17:51:04 +00:00

compact chat window text a bit

This commit is contained in:
mlctrez 2022-03-24 21:22:57 -05:00
parent 906a85c8d2
commit 14eb996218
2 changed files with 7 additions and 1 deletions

@ -116,7 +116,7 @@ func (h *Hello) Render() app.UI {
app.Div().ID("wrapper").Body(
app.Div().ID("chatbox").Body(
app.Range(h.messages).Slice(func(i int) app.UI {
return app.P().Text(h.messages[i])
return app.P().Class("chat-paragraph").Text(h.messages[i])
}),
),
app.Form().OnSubmit(func(ctx app.Context, e app.Event) {

@ -33,6 +33,12 @@ form {
overflow: auto;
}
.chat-paragraph {
padding: 2px;
margin-block-start: 1px;
margin-block-end: 0;
}
#chat-input {
flex: 1;
}