Skip to content

Commit 239fd2c

Browse files
authored
fix: disable git actions bar (#713)
1 parent d02f40d commit 239fd2c

File tree

1 file changed

+23
-37
lines changed

1 file changed

+23
-37
lines changed

apps/twig/src/renderer/features/task-detail/components/ChangesPanel.tsx

Lines changed: 23 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { PanelMessage } from "@components/ui/PanelMessage";
33
import { isDiffTabActiveInTree, usePanelLayoutStore } from "@features/panels";
44
import { usePendingPermissionsForTask } from "@features/sessions/stores/sessionStore";
55
import { useCwd } from "@features/sidebar/hooks/useCwd";
6-
import { GitActionsBar } from "@features/task-detail/components/GitActionsBar";
76
import {
87
ArrowCounterClockwiseIcon,
98
CaretDownIcon,
@@ -440,46 +439,33 @@ export function ChangesPanel({ taskId, task: _task }: ChangesPanelProps) {
440439
const hasChanges = changedFiles.length > 0;
441440

442441
if (!hasChanges) {
443-
return (
444-
<Box height="100%" position="relative">
445-
<PanelMessage>No file changes yet</PanelMessage>
446-
<GitActionsBar taskId={taskId} repoPath={repoPath} hasChanges={false} />
447-
</Box>
448-
);
442+
return <PanelMessage>No file changes yet</PanelMessage>;
449443
}
450444

451445
return (
452-
<Box height="100%" position="relative">
453-
<Box
454-
height="100%"
455-
overflowY="auto"
456-
py="2"
457-
style={{ paddingBottom: "52px" }}
458-
>
459-
<Flex direction="column">
460-
{changedFiles.map((file) => (
461-
<ChangedFileItem
462-
key={file.path}
463-
file={file}
464-
taskId={taskId}
465-
repoPath={repoPath}
466-
isActive={isFileActive(file)}
467-
mainRepoPath={workspace?.folderPath}
468-
/>
469-
))}
470-
<Flex align="center" justify="center" gap="1" py="2">
471-
<CaretUpIcon size={12} color="var(--gray-10)" />
472-
<Text size="1" className="text-gray-10">
473-
/
474-
</Text>
475-
<CaretDownIcon size={12} color="var(--gray-10)" />
476-
<Text size="1" className="text-gray-10" ml="1">
477-
to switch files
478-
</Text>
479-
</Flex>
446+
<Box height="100%" overflowY="auto" py="2">
447+
<Flex direction="column">
448+
{changedFiles.map((file) => (
449+
<ChangedFileItem
450+
key={file.path}
451+
file={file}
452+
taskId={taskId}
453+
repoPath={repoPath}
454+
isActive={isFileActive(file)}
455+
mainRepoPath={workspace?.folderPath}
456+
/>
457+
))}
458+
<Flex align="center" justify="center" gap="1" py="2">
459+
<CaretUpIcon size={12} color="var(--gray-10)" />
460+
<Text size="1" className="text-gray-10">
461+
/
462+
</Text>
463+
<CaretDownIcon size={12} color="var(--gray-10)" />
464+
<Text size="1" className="text-gray-10" ml="1">
465+
to switch files
466+
</Text>
480467
</Flex>
481-
</Box>
482-
<GitActionsBar taskId={taskId} repoPath={repoPath} hasChanges={true} />
468+
</Flex>
483469
</Box>
484470
);
485471
}

0 commit comments

Comments
 (0)