We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e15989 commit 219e325Copy full SHA for 219e325
src/components/SkillDiffCard.tsx
@@ -461,8 +461,11 @@ function applyMonacoTheme(monaco: NonNullable<ReturnType<typeof useMonaco>>) {
461
}
462
463
function normalizeHex(value: string) {
464
- if (value.startsWith('#')) return value
465
- return '#000000'
+ if (!value.startsWith('#')) return '#000000'
+ if (value.length === 4) {
466
+ return `#${value[1]}${value[1]}${value[2]}${value[2]}${value[3]}${value[3]}`
467
+ }
468
+ return value
469
470
471
function toRgba(color: string, alpha: number) {
0 commit comments