Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ export default function ChatInterface({
)}
{(threadId || threadMessages?.length > 0 || userDraftMessage) && (
// Chat messages - show when we have a threadId OR messages OR draft
<div className="max-w-[48rem] mx-auto space-y-4">
<div className="max-w-[var(--chat-max-width)] mx-auto space-y-4">
{threadMessages?.map((message: ChatMessage) => {
// Show user messages always, and assistant messages even if empty (for streaming)
const shouldShow =
Expand Down Expand Up @@ -450,7 +450,7 @@ export default function ChatInterface({
</div>

<ChatInput
className="max-w-[48rem] mx-auto w-full sticky bottom-0 z-50"
className="max-w-[var(--chat-max-width)] mx-auto w-full sticky bottom-0 z-50"
value={inputValue}
onChange={setInputValue}
onSendMessage={handleSendMessage}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ const MarkdownWrapper = styled.div`
overflow-y: auto;
margin: 1rem 0;
max-height: 400px;
max-width: 46rem;
max-width: var(--chat-max-width);
box-sizing: border-box;
position: relative;

Expand Down Expand Up @@ -153,7 +153,7 @@ const MarkdownWrapper = styled.div`
line-height: 1.5;
white-space: pre;
display: block;
max-width: 46rem;
max-width: var(--chat-max-width);
min-width: 100%;
}
}
Expand Down Expand Up @@ -337,7 +337,7 @@ function TypewriterText({
rehypePlugins={[rehypeRaw]}
components={{
table: ({ node: _node, ...props }) => (
<div>
<div className="max-w-[var(--chat-max-width)]">
<Table {...props} />
</div>
),
Expand Down Expand Up @@ -444,7 +444,7 @@ export default function MessageBubble({
rehypePlugins={[rehypeRaw]}
components={{
table: ({ node: _node, ...props }) => (
<div className="overflow-x-auto rounded-xl my-4">
<div className="overflow-x-auto rounded-xl my-4 max-w-[var(--chat-max-width)]">
<Table {...props} />
</div>
),
Expand Down
1 change: 1 addition & 0 deletions services/platform/app/(app)/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ body {
--chart-4: 43 74% 66%;
--chart-5: 27 87% 67%;
--radius: 0.5rem;
--chat-max-width: 48rem;
}
.dark {
--background: 240 10% 3.9%;
Expand Down