Fix scrolling the virtual terminal on mobile

This commit is contained in:
Alex Gleason committed 2025-09-26 21:22:16 -05:00
1 parent fba1328e5f
commit fc6a70793f
2 files changed
+7 -7

No files matched your search

+6 -6
View File
@@ -757,20 +757,20 @@ export function PreviewPane({ projectId, activeTab, onToggleView, projectName, o
</div>
) : mobileCodeView === 'terminal' ? (
<>
<div className="px-1 flex items-center gap-2 bg-black text-purple-400">
<div className="h-12 px-3 flex items-center gap-2 bg-black text-purple-400 flex-shrink-0">
<Button
variant="ghost"
size="sm"
onClick={() => setMobileCodeView('explorer')}
className="p-0.5 hover:bg-transparent hover:text-white -mb-3"
className="p-1 hover:bg-transparent hover:text-white"
>
<ArrowLeft className="h-4 w-4" />
<h3 className="font-semibold flex-1">
Back
</h3>
</Button>
<h3 className="font-semibold">
Terminal
</h3>
</div>
<div className="flex-1">
<div className="flex-1 min-h-0">
<TerminalComponent projectId={projectId} />
</div>
</>
+1 -1
View File
@@ -217,7 +217,7 @@ export function Terminal({ projectId, className }: TerminalProps) {
onChange={(e) => setCurrentInput(e.target.value)}
onKeyDown={handleKeyDown}
disabled={isExecuting}
className="w-full bg-transparent border-none outline-none text-white font-mono placeholder-gray-500 caret-white leading-relaxedFP"
className="w-full bg-transparent border-none outline-none text-white font-mono placeholder-gray-500 caret-white leading-relaxed"
placeholder=""
autoComplete="off"
spellCheck="false"