web: cap the size of reply boxes

also add a nice divider line before the input box
This commit is contained in:
William Casarin 2022-11-12 14:15:46 -08:00
parent 1b49a7029b
commit 8b68c76951
3 changed files with 15 additions and 4 deletions

View file

@ -201,7 +201,7 @@ function render_event(model, ev, opts={}) {
}
const has_top_line = replied_events !== ""
const border_bottom = has_bot_line ? "" : "bottom-border";
const border_bottom = opts.is_composing || has_bot_line ? "" : "bottom-border";
return `
${replied_events}
<div id="ev${ev.id}" class="event ${border_bottom}">