Skip to content

Commit 0701130

Browse files
authored
Merge pull request #234 from beNative/codex/add-left-border-with-padding-on-snippet-containers-kpqfdl
Darken snippet backgrounds
2 parents ed06376 + f4ff923 commit 0701130

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

components/FolderOverview.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,8 @@ 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)',
371+
borderRadius: '4px',
370372
}}
371373
>
372374
{highlightMatches(result.searchSnippet, folderSearchTerm)}

components/PromptTreeItem.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +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 = 'rgb(var(--color-border) / 0.26)';
359360

360361
return (
361362
<li
@@ -523,6 +524,8 @@ const DocumentTreeItem: React.FC<DocumentTreeItemProps> = (props) => {
523524
borderLeftWidth: `${snippetAccentWidth}px`,
524525
borderLeftStyle: 'solid',
525526
borderLeftColor: snippetAccentColor,
527+
backgroundColor: snippetBackgroundColor,
528+
borderRadius: '4px',
526529
}}
527530
>
528531
{highlightMatches(node.searchSnippet, searchTerm)}

0 commit comments

Comments
 (0)