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.
2 parents af40c53 + 219e325 commit fff263eCopy full SHA for fff263e
src/components/SkillDiffCard.tsx
@@ -464,8 +464,11 @@ function applyMonacoTheme(monaco: NonNullable<ReturnType<typeof useMonaco>>) {
464
}
465
466
function normalizeHex(value: string) {
467
- if (value.startsWith('#')) return value
468
- return '#000000'
+ if (!value.startsWith('#')) return '#000000'
+ if (value.length === 4) {
469
+ return `#${value[1]}${value[1]}${value[2]}${value[2]}${value[3]}${value[3]}`
470
+ }
471
+ return value
472
473
474
function toRgba(color: string, alpha: number) {
0 commit comments