Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web): add chat width setting for wide screens #11594

Mergedotavio(GitHub profile, opens in a new tab)merged 5 commits intomain fromrefs/pull/11594/headmerged by Yash-Singh1(GitHub profile, opens in a new tab) View on GitHub

Showing 12 changed files with 39 additions and 18 deletions (loading 9).

x
0 of 12 viewed, 12 left
1 addition and 1 deletionapps/web/src/components/chat/ChatComposer.tsxModified
View file
@@ -6165,7 +6165,7 @@
if (isInsideRestingComposerControlScope(event.target)) return;
composerMentionDragHandlers.onDrop(event);
- className="mx-auto w-full min-w-0 max-w-3xl"
+ className="mx-auto w-full min-w-0 max-w-(--chat-max-width)"
data-chat-composer-form="true"
{composerControlsInStrip && restingControlsHost
1 addition and 1 deletionapps/web/src/components/chat/ComposerSurface.tsxModified
View file
@@ -13,7 +13,7 @@
data-slot="composer-shell"
data-with-context={contextStrip || undefined}
className={cn(
- "@container/composer-surface group/composer-surface relative isolate mx-auto w-full max-w-3xl",
+ "@container/composer-surface group/composer-surface relative isolate mx-auto w-full max-w-(--chat-max-width)",
"[--chat-composer-drawer-inset:1.375rem] [--chat-composer-glass-surface:var(--card)] [--chat-composer-outline:rgb(0_0_0/8%)]",
"dark:[--chat-composer-glass-surface:var(--surface-raised)] dark:[--chat-composer-highlight:rgb(255_255_255/3%)] dark:[--chat-composer-outline:color-mix(in_srgb,var(--color-white)_5%,transparent)]",
"[html[data-theme-id]_&]:[--chat-composer-glass-surface:var(--app-theme-surface-raised)] [html[data-theme-id]_&]:[--chat-composer-outline:var(--app-theme-toolbar-border)]",
37 additions and 16 deletionsapps/web/src/components/chat/MessagesTimeline.logic.tsModified
View file
@@ -42,7 +42,6 @@
const TIMELINE_MINIMAP_ITEM_SPACING = 8;
export const TIMELINE_MINIMAP_MIN_ITEMS = 2;
const TIMELINE_MINIMAP_MAX_HEIGHT_CSS = "calc(100vh - 18rem)";