From 6d77e77200b964b587f3f178d5063f14ae588f0d Mon Sep 17 00:00:00 2001 From: iliya Date: Sat, 21 Mar 2026 12:12:04 +0200 Subject: [PATCH] fix: tool approval select z-index and syntax highlight colors - SelectContent z-[60] to render above the z-[55] approval sheet - Move fallback text color to parent div so hljs class colors take priority (inline style on each line was overriding .hljs-attr/.hljs-string classes) --- src/renderer/components/team/ToolApprovalSheet.tsx | 2 +- .../components/team/dialogs/ToolApprovalSettingsPanel.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/components/team/ToolApprovalSheet.tsx b/src/renderer/components/team/ToolApprovalSheet.tsx index 18efa0df..ed696cf0 100644 --- a/src/renderer/components/team/ToolApprovalSheet.tsx +++ b/src/renderer/components/team/ToolApprovalSheet.tsx @@ -332,6 +332,7 @@ const ToolInputPreview = ({ style={{ backgroundColor: 'var(--color-surface)', borderColor: 'var(--color-border)', + color: 'var(--color-text-secondary)', }} > {/* highlightLines uses hljs which HTML-escapes all input text, producing only tags. @@ -341,7 +342,6 @@ const ToolInputPreview = ({
))} diff --git a/src/renderer/components/team/dialogs/ToolApprovalSettingsPanel.tsx b/src/renderer/components/team/dialogs/ToolApprovalSettingsPanel.tsx index ad5f7218..5e314c0c 100644 --- a/src/renderer/components/team/dialogs/ToolApprovalSettingsPanel.tsx +++ b/src/renderer/components/team/dialogs/ToolApprovalSettingsPanel.tsx @@ -96,7 +96,7 @@ export const ToolApprovalSettingsPanel: React.FC = () => { - + Wait forever Allow Deny