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:
parent
906a85c8d2
commit
14eb996218
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user