Skip to content

Commit 8acd3cc

Browse files
authored
Merge pull request #236 from beNative/codex/add-left-border-with-padding-on-snippet-containers-et7e5k
Use theme background for snippet highlights
2 parents 0701130 + 19c3f21 commit 8acd3cc

2 files changed

Lines changed: 3 additions & 2 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-
backgroundColor: 'rgb(var(--color-border) / 0.26)',
370+
background: 'color-mix(in srgb, rgb(var(--color-background)) 82%, rgb(var(--color-text-main)) 18%)',
371371
borderRadius: '4px',
372372
}}
373373
>

components/PromptTreeItem.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,8 @@ 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 = 'rgb(var(--color-border) / 0.26)';
359+
const snippetBackgroundColor =
360+
'color-mix(in srgb, rgb(var(--color-background)) 82%, rgb(var(--color-text-main)) 18%)';
360361

361362
return (
362363
<li

0 commit comments

Comments
 (0)