From 93a69fcaabe01ede84197e6a551fa6b46416da67 Mon Sep 17 00:00:00 2001 From: Chris Scott Date: Fri, 12 Dec 2025 19:35:59 -0500 Subject: [PATCH] Improve UI: show branch name on all screen sizes and increase back button padding --- backend/src/routes/repos.ts | 4 +--- frontend/src/components/repo/BranchSwitcher.tsx | 2 +- frontend/src/components/ui/back-button.tsx | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/backend/src/routes/repos.ts b/backend/src/routes/repos.ts index 67f9b57e..585fc2d3 100644 --- a/backend/src/routes/repos.ts +++ b/backend/src/routes/repos.ts @@ -101,9 +101,7 @@ export function createRepoRoutes(database: Database) { return c.json({ error: 'Repo not found' }, 404) } - await withTransactionAsync(database, async (db) => { - await repoService.deleteRepoFiles(db, id) - }) + await repoService.deleteRepoFiles(database, id) return c.json({ success: true }) } catch (error: any) { diff --git a/frontend/src/components/repo/BranchSwitcher.tsx b/frontend/src/components/repo/BranchSwitcher.tsx index 5c8fcaa6..804b0ade 100644 --- a/frontend/src/components/repo/BranchSwitcher.tsx +++ b/frontend/src/components/repo/BranchSwitcher.tsx @@ -70,7 +70,7 @@ export function BranchSwitcher({ repoId, currentBranch, isWorktree, repoUrl, rep ) : ( )} - {currentBranch} + {currentBranch} diff --git a/frontend/src/components/ui/back-button.tsx b/frontend/src/components/ui/back-button.tsx index 8e306286..172efa1f 100644 --- a/frontend/src/components/ui/back-button.tsx +++ b/frontend/src/components/ui/back-button.tsx @@ -12,7 +12,7 @@ export function BackButton({ to = "/", className = "" }: BackButtonProps) { return (