Skip to content
Draft
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
12 changes: 9 additions & 3 deletions webview-ui/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,16 @@ const App = () => {

// Do not conditionally load ChatView, it's expensive and there's state we
// don't want to lose (user input, disableInput, askResponse promise, etc.)

// Container for max-width constraint on large screens (editor/tab mode only)
const containerClassName = renderContext === "editor" ? "h-full w-full mx-auto max-w-[896px]" : "h-full w-full"

return showWelcome ? (
<WelcomeView />
<div className={containerClassName}>
<WelcomeView />
</div>
) : (
<>
<div className={containerClassName}>
{tab === "history" && <HistoryView onDone={() => switchTab("chat")} />}
{tab === "settings" && (
<SettingsView ref={settingsRef} onDone={() => setTab("chat")} targetSection={currentSection} />
Expand Down Expand Up @@ -310,7 +316,7 @@ const App = () => {
}}
/>
)}
</>
</div>
)
}

Expand Down
Loading