We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69d9a65 commit 86c94b4Copy full SHA for 86c94b4
1 file changed
apps/web/src/components/chat/ChatHeader.tsx
@@ -149,14 +149,14 @@ export const ChatHeader = memo(function ChatHeader({
149
aria-label="Toggle diff panel"
150
variant="outline"
151
size="xs"
152
- disabled={!isGitRepo}
+ disabled={!isGitRepo && !diffOpen}
153
>
154
<DiffIcon className="size-3" />
155
</Toggle>
156
}
157
/>
158
<TooltipPopup side="bottom">
159
- {!isGitRepo
+ {!isGitRepo && !diffOpen
160
? "Diff panel is unavailable because this project is not a git repository."
161
: diffToggleShortcutLabel
162
? `Toggle diff panel (${diffToggleShortcutLabel})`
0 commit comments