diff --git a/src/renderer/src/components/right-sidebar/GitHistoryGraphSvg.tsx b/src/renderer/src/components/right-sidebar/GitHistoryGraphSvg.tsx
index b1e1b2937..6eea947b4 100644
--- a/src/renderer/src/components/right-sidebar/GitHistoryGraphSvg.tsx
+++ b/src/renderer/src/components/right-sidebar/GitHistoryGraphSvg.tsx
@@ -6,9 +6,10 @@ import {
type GitHistoryItemViewModel
} from '../../../../shared/git-history-graph'
-const SWIMLANE_HEIGHT = 22
+const SWIMLANE_HEIGHT = 34
const SWIMLANE_WIDTH = 11
const SWIMLANE_CURVE_RADIUS = 5
+const SWIMLANE_NODE_Y = SWIMLANE_HEIGHT / 2
const CIRCLE_RADIUS = 3.5
const CIRCLE_STROKE_WIDTH = 1.5
@@ -66,7 +67,7 @@ export function GitHistoryGraphSvg({
color={color}
d={[
`M ${SWIMLANE_WIDTH * (index + 1)} 0`,
- `A ${SWIMLANE_WIDTH} ${SWIMLANE_WIDTH} 0 0 1 ${SWIMLANE_WIDTH * index} ${SWIMLANE_WIDTH}`,
+ `A ${SWIMLANE_WIDTH} ${SWIMLANE_WIDTH} 0 0 1 ${SWIMLANE_WIDTH * index} ${SWIMLANE_NODE_Y}`,
`H ${SWIMLANE_WIDTH * (circleIndex + 1)}`
].join(' ')}
/>
@@ -153,7 +154,7 @@ export function GitHistoryGraphSvg({
}
const cx = SWIMLANE_WIDTH * (circleIndex + 1)
- const cy = SWIMLANE_WIDTH
+ const cy = SWIMLANE_NODE_Y
const width = SWIMLANE_WIDTH * (Math.max(inputSwimlanes.length, outputSwimlanes.length, 1) + 1)
const isBoundaryNode =
viewModel.kind === 'incoming-changes' || viewModel.kind === 'outgoing-changes'
diff --git a/src/renderer/src/components/right-sidebar/GitHistoryPanel.tsx b/src/renderer/src/components/right-sidebar/GitHistoryPanel.tsx
index 5e9844cc8..98136a43c 100644
--- a/src/renderer/src/components/right-sidebar/GitHistoryPanel.tsx
+++ b/src/renderer/src/components/right-sidebar/GitHistoryPanel.tsx
@@ -1,5 +1,5 @@
import React, { useMemo } from 'react'
-import { ChevronDown, RefreshCw } from 'lucide-react'
+import { ChevronDown, CircleHelp, RefreshCw } from 'lucide-react'
import { Button } from '@/components/ui/button'
import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip'
import { cn } from '@/lib/utils'
@@ -30,17 +30,26 @@ function GitHistoryRefBadge({
}: {
itemRef: NonNullable
}): React.JSX.Element {
+ const refLabel = itemRef.category ? `${itemRef.name} (${itemRef.category})` : itemRef.name
+
return (
-
- {itemRef.name}
-
+
+
+
+ {itemRef.name}
+
+
+
+ {refLabel}
+
+
)
}
@@ -56,16 +65,20 @@ function GitHistoryRow({
const isBoundaryNode =
viewModel.kind === 'incoming-changes' || viewModel.kind === 'outgoing-changes'
const canOpenCommit = !isBoundaryNode && Boolean(onOpenCommit)
+ const refs = item.references ?? []
+ const visibleRefs = refs.slice(0, 2)
+ const hiddenRefs = refs.slice(2)
+ const rowTooltip = item.message || item.subject
return (