diff --git a/ui/src/styles/components.css b/ui/src/styles/components.css index b4f36044b..3a5a09999 100644 --- a/ui/src/styles/components.css +++ b/ui/src/styles/components.css @@ -304,6 +304,11 @@ background: rgba(0, 0, 0, 0.2); } +.chat-messages { + margin-top: 8px; + padding: 6px; +} + .msg { border: 1px solid var(--border); background: rgba(0, 0, 0, 0.2); @@ -341,6 +346,33 @@ gap: 10px; } +.chat-compose { + margin-top: 8px; + grid-template-columns: minmax(0, 1fr) auto; + align-items: end; + gap: 8px; +} + +.chat-compose__field { + gap: 4px; +} + +.chat-compose__field textarea { + min-height: 120px; + padding: 8px 10px; +} + +.chat-compose__actions { + justify-content: flex-end; + align-self: end; +} + +@media (max-width: 900px) { + .chat-compose { + grid-template-columns: 1fr; + } +} + .qr-wrap { margin-top: 12px; border-radius: 14px; diff --git a/ui/src/ui/views/chat.ts b/ui/src/ui/views/chat.ts index bbf386d9d..6e952d8f6 100644 --- a/ui/src/ui/views/chat.ts +++ b/ui/src/ui/views/chat.ts @@ -37,7 +37,7 @@ export function renderChat(props: ChatProps) { -
+
${props.loading ? html`
Loading chat…
` : nothing} ${props.messages.map((m) => renderMessage(m))} ${props.stream @@ -48,8 +48,8 @@ export function renderChat(props: ChatProps) { : nothing}
-
-