feat: center the chat conversation column

This commit is contained in:
Shakker
2026-07-11 19:07:19 +01:00
committed by Shakker
parent ad3142ae85
commit 4dfe677969
2 changed files with 15 additions and 1 deletions

View File

@@ -310,7 +310,12 @@ export function renderChat(props: ChatProps) {
})}
class="card chat"
style=${styleMap(
props.chatMessageMaxWidth ? { "--chat-message-max-width": props.chatMessageMaxWidth } : {},
props.chatMessageMaxWidth
? {
"--chat-thread-max-width": props.chatMessageMaxWidth,
"--chat-message-max-width": "100%",
}
: {},
)}
@drop=${(event: DragEvent) => {
event.preventDefault();

View File

@@ -11,6 +11,8 @@ openclaw-chat-page {
}
.chat {
--chat-thread-max-width: 48rem;
position: relative;
display: flex;
flex-direction: column;
@@ -101,6 +103,13 @@ openclaw-chat-pane:has(> .chat-pane__header) .chat-thread {
margin-top: 0 !important;
}
.chat-thread-inner {
box-sizing: border-box;
width: calc(100% - 36px);
max-width: var(--chat-thread-max-width);
margin-inline: auto;
}
/* New messages indicator - floating pill above compose */
.chat-new-messages {
align-self: center;