Skip to content

Commit 232396c

Browse files
authored
Merge pull request #237 from beNative/codex/add-left-border-with-padding-on-snippet-containers-x0p358
Use theme background color directly for snippet highlights
2 parents 8acd3cc + cd67eba commit 232396c

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

components/FolderOverview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ const FolderOverview: React.FC<FolderOverviewProps> = ({
367367
borderLeftWidth: '3px',
368368
borderLeftStyle: 'solid',
369369
borderLeftColor: 'rgb(var(--color-accent) / 0.45)',
370-
background: 'color-mix(in srgb, rgb(var(--color-background)) 82%, rgb(var(--color-text-main)) 18%)',
370+
background: 'rgb(var(--color-background))',
371371
borderRadius: '4px',
372372
}}
373373
>

components/PromptTreeItem.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,7 @@ const DocumentTreeItem: React.FC<DocumentTreeItemProps> = (props) => {
356356
const snippetAccentWidth = 3;
357357
const snippetMarginLeft = Math.max(snippetPaddingLeft - snippetAccentPadding, 0);
358358
const snippetAccentColor = 'rgb(var(--color-accent) / 0.45)';
359-
const snippetBackgroundColor =
360-
'color-mix(in srgb, rgb(var(--color-background)) 82%, rgb(var(--color-text-main)) 18%)';
359+
const snippetBackgroundColor = 'rgb(var(--color-background))';
361360

362361
return (
363362
<li

0 commit comments

Comments
 (0)