@devries-cameron20 / t3code Mirror · read-only / commits / 86c94b4852
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 25, 05:00 UTC

fix(web): allow closing diff panel in non-git projects (#2413)

kp committed Apr 30, 2026 at 01:36 UTC 86c94b48522b279ca411067529dc89a9aca8ee7b
1 file changed +2 -2
apps/web/src/components/chat/ChatHeader.tsx
+2 -2
@@ -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}
152 + disabled={!isGitRepo && !diffOpen}
153 >
154 <DiffIcon className="size-3" />
155 </Toggle>
156 }
157 />
158 <TooltipPopup side="bottom">
159 - {!isGitRepo
159 + {!isGitRepo && !diffOpen
160 ? "Diff panel is unavailable because this project is not a git repository."
161 : diffToggleShortcutLabel
162 ? `Toggle diff panel (${diffToggleShortcutLabel})`