This commit is contained in:
Deleted user 2026-05-27 10:05:29 +08:00 committed by GitHub
commit df973612ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -170,10 +170,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} />
@ -243,7 +249,7 @@ const App = () => {
}}
/>
)}
</>
</div>
)
}