fix(settings): fixed color picker for custom highlight colors, closes #3796 (#3857)

This commit is contained in:
Huang Xin
2026-04-13 14:25:48 +08:00
committed by GitHub
parent 96678d85ec
commit ec32614539
2 changed files with 116 additions and 1 deletions
@@ -253,7 +253,7 @@ const HighlightColorsEditor: React.FC<HighlightColorsEditorProps> = ({
{userHighlightColors.length > 0 && (
<div className='grid grid-cols-3 gap-3 sm:grid-cols-5'>
{userHighlightColors.map(({ hex, label }, index) => (
<div key={hex} className='group relative flex flex-col items-center gap-2'>
<div key={index} className='group relative flex flex-col items-center gap-2'>
<ColorCircle
hex={hex}
label={label ?? ''}