Fix iOS PWA layout issues and improve mobile header

This commit is contained in:
Chris Scott committed 2025-11-28 17:24:14 -05:00
1 parent 2e8b1dfd32
commit e163b64dde
3 files changed
+15 -17

No files matched your search

@@ -140,7 +140,7 @@ export function GitChangesPanel({ repoId, onFileSelect, selectedFile }: GitChang
</div>
</div>
<div className="flex-1 overflow-y-auto p-2">
<div className="space-y-1">
<div className="space-y-1 pb-8">
{filteredFiles.map((file) => (
<FileStatusItem
key={`${file.path}-${file.staged}`}
@@ -4,7 +4,7 @@ import { useSettings } from '@/hooks/useSettings'
import { useCommands } from '@/hooks/useCommands'
import { useCommandHandler } from '@/hooks/useCommandHandler'
import { useFileSearch } from '@/hooks/useFileSearch'
import { useStandalone } from '@/hooks/useStandalone'
import { useUserBash } from '@/stores/userBashStore'
import { ChevronDown } from 'lucide-react'
@@ -84,7 +84,7 @@ export function PromptInput({
directory
)
const isStandalone = useStandalone()
const { addUserBashCommand } = useUserBash()
const handleSubmit = () => {
@@ -426,7 +426,7 @@ export function PromptInput({
return (
<div className={`backdrop-blur-md bg-background opacity-95 border border-border rounded-lg p-2 md:p-3 mx-2 md:mx-4 md:mb-4 w-full max-w-4xl pb-safe ${isStandalone ? 'mb-6' : 'mb-2'}`}>
<div className="backdrop-blur-md bg-background opacity-95 border border-border rounded-lg p-2 md:p-3 mx-2 md:mx-4 mb-2 md:mb-4 w-full max-w-4xl pb-safe">
<textarea
@@ -105,7 +105,7 @@ export function SessionDetailHeader({
onChange={(e) => setEditTitle(e.target.value)}
onBlur={handleTitleBlur}
onKeyDown={handleKeyDown}
className="text-xs sm:text-base font-semibold bg-background border border-border rounded px-1 outline-none w-full truncate focus:border-primary sm:max-w-[250px]"
className="text-[16px] sm:text-base font-semibold bg-background border border-border rounded px-1 outline-none w-full truncate focus:border-primary sm:max-w-[250px]"
autoFocus
/>
</form>
@@ -117,18 +117,9 @@ export function SessionDetailHeader({
{sessionTitle}
</h1>
)}
<div className="flex items-center gap-2">
<p className="text-[10px] sm:text-xs text-muted-foreground truncate">
{repoName}
</p>
<BranchSwitcher
repoId={repoId}
currentBranch={currentBranch}
isWorktree={repo.isWorktree}
repoUrl={repo.repoUrl}
repoLocalPath={repo.localPath}
/>
</div>
<p className="text-[10px] sm:text-xs text-muted-foreground truncate">
{repoName}
</p>
</div>
</div>
<div className="flex items-center gap-2 sm:gap-4 flex-shrink-0">
@@ -139,6 +130,13 @@ export function SessionDetailHeader({
directory={repoDirectory}
/>
</div>
<BranchSwitcher
repoId={repoId}
currentBranch={currentBranch}
isWorktree={repo.isWorktree}
repoUrl={repo.repoUrl}
repoLocalPath={repo.localPath}
/>
<div className="flex items-center gap-1 sm:gap-2">
<div
className={`w-1.5 h-1.5 sm:w-2 sm:h-2 rounded-full ${