mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
Improve branch switcher layout consistency across components
This commit is contained in:
1 parent
400f62bbee
commit
e4a27e53e5
4 files changed
+4
-1
No files matched your search
@@ -47,6 +47,7 @@ export function BranchSwitcher({ repoId, currentBranch, isWorktree, repoUrl, rep
|
||||
onSuccess: () => {
|
||||
queryClient.invalidateQueries({ queryKey: ["repo", repoId] });
|
||||
queryClient.invalidateQueries({ queryKey: ["branches", repoId] });
|
||||
queryClient.invalidateQueries({ queryKey: ["repos"] });
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -123,7 +123,7 @@ export function RepoCard({
|
||||
isWorktree={repo.isWorktree}
|
||||
repoUrl={repo.repoUrl}
|
||||
repoLocalPath={repo.localPath}
|
||||
className="h-10 sm:h-9 min-w-10"
|
||||
className="h-10 sm:h-9 w-[140px] max-w-[140px]"
|
||||
/>
|
||||
)}
|
||||
|
||||
|
||||
@@ -158,6 +158,7 @@ export function SessionDetailHeader({
|
||||
isWorktree={repo.isWorktree}
|
||||
repoUrl={repo.repoUrl}
|
||||
repoLocalPath={repo.localPath}
|
||||
className="max-w-[80px] sm:w-[140px] sm:max-w-[140px]"
|
||||
/>
|
||||
<div className="flex items-center gap-1 sm:gap-2">
|
||||
<div
|
||||
|
||||
@@ -123,6 +123,7 @@ export function RepoDetail() {
|
||||
currentBranch={currentBranch}
|
||||
isWorktree={repo.isWorktree}
|
||||
repoUrl={repo.repoUrl}
|
||||
className="w-[140px] max-w-[140px]"
|
||||
/>
|
||||
) : branchToDisplay ? (
|
||||
<Badge
|
||||
|
||||
Reference in new issue
Block a user