Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions apps/web/src/components/DiffPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -792,8 +792,14 @@ export default function DiffPanel({
className="flex min-w-0 max-w-full items-center gap-2 overflow-hidden text-xs text-muted-foreground"
aria-label={`Comparing ${selectedGitSource.headRef ?? "HEAD"} against ${selectedGitSource.baseRef}`}
>
{/* The head ref keeps 3rem while the row has room; below that the
base-ref button keeps 2.25rem so its menu stays reachable. */}
<Tooltip>
<TooltipTrigger render={<span className="flex min-w-0 items-center gap-2" />}>
<TooltipTrigger
render={
<span className="flex min-w-[min(3rem,calc(100%-2.75rem))] items-center gap-2 overflow-hidden" />
}
>
<span className="min-w-0 max-w-48 truncate">
{selectedGitSource.headRef ?? "HEAD"}
</span>
Expand All @@ -817,7 +823,7 @@ export default function DiffPanel({
>
<ComboboxTrigger
render={<Button variant="ghost-muted" size="xs" />}
className="min-w-0 max-w-48"
className="min-w-9 max-w-48 shrink"
aria-label={`Change comparison target. Currently ${selectedGitSource.baseRef}`}
>
<span className="min-w-0 truncate">{selectedGitSource.baseRef}</span>
Expand Down
Loading