diff --git a/examples/server/public/index.html b/examples/server/public/index.html index a0dfd89fc..19ba09578 100644 --- a/examples/server/public/index.html +++ b/examples/server/public/index.html @@ -16,7 +16,6 @@ #container { margin: 0em auto; - display: flex; flex-direction: column; justify-content: space-between; @@ -35,21 +34,11 @@ gap: 1em; flex-grow: 1; - border-style: outset; - padding: 1em; - } - - main .content { - flex-grow: 1; - } - - main .content > * { overflow-y: auto; - } - footer { - font-size: smaller; - color: #999; + border: 1px solid #ccc; + border-radius: 5px; + padding: 0.5em; } body { @@ -57,6 +46,7 @@ min-width: 300px; line-height: 1.2; margin: 0 auto; + padding: 0 0.5em; } p { @@ -67,31 +57,30 @@ margin-bottom: 0.5em; } - form { + #write form { margin: 1em 0 0 0; display: flex; + flex-direction: column; gap: 0.5em; + align-items: stretch; + } + + .right { + display: flex; flex-direction: row; - align-items: center; - } - - form > * { - padding: 4px; - } - - form input { - flex-grow: 1; - } - - form textarea { - flex-grow: 1; - min-height: 5em; - width: 100%; + gap: 0.5em; + justify-content: flex-end; } fieldset { + border: none; + padding: 0; + margin: 0; + } + + textarea { + flex-grow: 1; width: 100%; - padding: 1em; } fieldset label { @@ -209,12 +198,23 @@ message.value = ""; } + const enterSubmits = (event) => { + if (event.which === 13 && !event.shiftKey) { + submit(event); + } + } + return html`
- message.value = e.target.value} autofocus placeholder="Chat here..."/> +
+