Skip to content

Commit 93a69fc

Browse files
Improve UI: show branch name on all screen sizes and increase back button padding
1 parent fa814d4 commit 93a69fc

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

backend/src/routes/repos.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,7 @@ export function createRepoRoutes(database: Database) {
101101
return c.json({ error: 'Repo not found' }, 404)
102102
}
103103

104-
await withTransactionAsync(database, async (db) => {
105-
await repoService.deleteRepoFiles(db, id)
106-
})
104+
await repoService.deleteRepoFiles(database, id)
107105

108106
return c.json({ success: true })
109107
} catch (error: any) {

frontend/src/components/repo/BranchSwitcher.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export function BranchSwitcher({ repoId, currentBranch, isWorktree, repoUrl, rep
7070
) : (
7171
<GitBranch className="w-3 h-3" />
7272
)}
73-
<span className="hidden sm:inline truncate">{currentBranch}</span>
73+
<span className="truncate">{currentBranch}</span>
7474
</Button>
7575
</DropdownMenuTrigger>
7676
<DropdownMenuContent sideOffset={0} align="end" className="bg-card border-border min-w-[200px]">

frontend/src/components/ui/back-button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export function BackButton({ to = "/", className = "" }: BackButtonProps) {
1212
return (
1313
<button
1414
onClick={() => navigate(to)}
15-
className={`text-zinc-400 hover:text-zinc-100 transition-all duration-200 hover:scale-105 text-sm md:text-md border border-zinc-700 rounded-md px-2 py-1 hover ${className}`}
15+
className={`text-zinc-400 hover:text-zinc-100 transition-all duration-200 hover:scale-105 text-sm md:text-md border border-zinc-700 rounded-md px-3 py-1.5 hover ${className}`}
1616
>
1717
<ArrowLeft className="w-4 h-4" />
1818
</button>

0 commit comments

Comments
 (0)