mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-17 23:51:08 +00:00
Merge ba7aa826c4 into 2bb826039b
This commit is contained in:
commit
0b0e6e8611
1 changed files with 9 additions and 3 deletions
|
|
@ -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} />
|
||||
|
|
@ -310,7 +316,7 @@ const App = () => {
|
|||
}}
|
||||
/>
|
||||
)}
|
||||
</>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue