fix(git): clarify GitHub pull request link
This commit is contained in:
@@ -1454,19 +1454,17 @@ export const PullRequestSection: React.FC<{
|
|||||||
<div className="flex items-start justify-between gap-2">
|
<div className="flex items-start justify-between gap-2">
|
||||||
<div className="flex min-w-0 items-center gap-2">
|
<div className="flex min-w-0 items-center gap-2">
|
||||||
{pr ? (
|
{pr ? (
|
||||||
<Tooltip>
|
<Button
|
||||||
<TooltipTrigger asChild>
|
type="button"
|
||||||
<button
|
variant="outline"
|
||||||
type="button"
|
size="xs"
|
||||||
className="inline-flex size-6 shrink-0 items-center justify-center rounded-md border border-border/60 bg-background/70 hover:bg-interactive-hover/60"
|
className="shrink-0"
|
||||||
onClick={() => void openExternal(pr.url)}
|
onClick={() => void openExternal(pr.url)}
|
||||||
aria-label={t('gitView.pr.actions.openOnGitHubAria')}
|
aria-label={t('gitView.pr.actions.openOnGitHubAria')}
|
||||||
>
|
>
|
||||||
<Icon name={prStateIconName} className="size-4 shrink-0" style={{ color: prColorVar }} />
|
<Icon name={prStateIconName} className="size-4 shrink-0" style={{ color: prColorVar }} />
|
||||||
</button>
|
{t('gitView.pr.actions.openOnGitHub')}
|
||||||
</TooltipTrigger>
|
</Button>
|
||||||
<TooltipContent><p>{t('gitView.pr.actions.openOnGitHub')}</p></TooltipContent>
|
|
||||||
</Tooltip>
|
|
||||||
) : (
|
) : (
|
||||||
<Icon name={prStateIconName} className="size-4 shrink-0" style={{ color: 'var(--surface-muted-foreground)' }} />
|
<Icon name={prStateIconName} className="size-4 shrink-0" style={{ color: 'var(--surface-muted-foreground)' }} />
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user