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)
This commit is contained in:
parent
a6fc7f82d3
commit
6d77e77200
2 changed files with 2 additions and 2 deletions
|
|
@ -332,6 +332,7 @@ const ToolInputPreview = ({
|
||||||
style={{
|
style={{
|
||||||
backgroundColor: 'var(--color-surface)',
|
backgroundColor: 'var(--color-surface)',
|
||||||
borderColor: 'var(--color-border)',
|
borderColor: 'var(--color-border)',
|
||||||
|
color: 'var(--color-text-secondary)',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{/* highlightLines uses hljs which HTML-escapes all input text, producing only <span class="hljs-*"> tags.
|
{/* highlightLines uses hljs which HTML-escapes all input text, producing only <span class="hljs-*"> tags.
|
||||||
|
|
@ -341,7 +342,6 @@ const ToolInputPreview = ({
|
||||||
<div
|
<div
|
||||||
key={i}
|
key={i}
|
||||||
className="whitespace-pre-wrap break-all"
|
className="whitespace-pre-wrap break-all"
|
||||||
style={{ color: 'var(--color-text-secondary)' }}
|
|
||||||
dangerouslySetInnerHTML={{ __html: html || ' ' }}
|
dangerouslySetInnerHTML={{ __html: html || ' ' }}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
|
|
|
||||||
|
|
@ -96,7 +96,7 @@ export const ToolApprovalSettingsPanel: React.FC = () => {
|
||||||
<SelectTrigger className="h-7 w-[120px] text-xs">
|
<SelectTrigger className="h-7 w-[120px] text-xs">
|
||||||
<SelectValue />
|
<SelectValue />
|
||||||
</SelectTrigger>
|
</SelectTrigger>
|
||||||
<SelectContent>
|
<SelectContent className="z-[60]">
|
||||||
<SelectItem value="wait">Wait forever</SelectItem>
|
<SelectItem value="wait">Wait forever</SelectItem>
|
||||||
<SelectItem value="allow">Allow</SelectItem>
|
<SelectItem value="allow">Allow</SelectItem>
|
||||||
<SelectItem value="deny">Deny</SelectItem>
|
<SelectItem value="deny">Deny</SelectItem>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue