Skip to content

Commit c0b3933

Browse files
author
Tim Sinaeve
committed
Fix tree selection opacity - use full bg-tree-selected instead of /20
1 parent 5f1d7fe commit c0b3933

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

components/PromptTreeItem.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,8 +478,8 @@ const DocumentTreeItem: React.FC<DocumentTreeItemProps> = (props) => {
478478
minHeight: '22px',
479479
}}
480480
className={`w-full text-left pr-1 flex justify-between items-center transition-colors duration-0 text-[13px] relative focus:outline-none cursor-default ${isSelected
481-
? 'bg-tree-selected/20 text-text-main font-medium'
482-
: 'hover:bg-tree-selected/10 text-text-secondary hover:text-text-main'
481+
? 'bg-tree-selected text-text-main font-medium'
482+
: 'hover:bg-tree-selected/40 text-text-secondary hover:text-text-main'
483483
} ${isFocused ? 'ring-1 ring-inset ring-primary' : ''}`}
484484
>
485485
<div className="flex items-center gap-1 flex-1 min-w-0">

components/TemplateList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ const TemplateList: React.FC<TemplateListProps> = ({ templates, activeTemplateId
7777
className={`w-full text-left pr-1 flex justify-between items-center transition-colors duration-0 text-[13px] relative focus:outline-none h-[22px] min-h-[22px] cursor-default ${
7878
// Fix: Use template_id
7979
activeTemplateId === template.template_id
80-
? 'bg-tree-selected/20 text-text-main font-medium'
81-
: 'hover:bg-tree-selected/10 text-text-secondary hover:text-text-main'
80+
? 'bg-tree-selected text-text-main font-medium'
81+
: 'hover:bg-tree-selected/40 text-text-secondary hover:text-text-main'
8282
} ${isFocused ? 'ring-1 ring-inset ring-primary' : ''}`}
8383
>
8484
<div className="flex items-center gap-1 flex-1 truncate pl-[2px]">

services/themeCustomization.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ const BASE_PALETTES: Record<ThemeMode, ThemePalette> = {
300300
modalBackdrop: '0 0 0 / 0.5',
301301
tooltipBg: '23 23 23',
302302
tooltipText: '245 245 245',
303-
treeSelected: '150 150 150',
303+
treeSelected: '200 200 200',
304304
selectArrowBackground: DEFAULT_LIGHT_SELECT_ARROW,
305305
},
306306
dark: {

0 commit comments

Comments
 (0)