Skip to content

Commit

Permalink
pad embed hex strings
Browse files Browse the repository at this point in the history
  • Loading branch information
jay3332 committed Dec 14, 2023
1 parent 7d3c9cb commit bfc0725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/messaging/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export function MessageContent(props: { message: Message, largePadding?: boolean
? `color-mix(in srgb, rgb(var(--c-bg-0)), hsl(${embed.hue * 3.6}, 35%, 50%) 25%)`
: 'rgb(var(--c-bg-0))',
'border-left-color': embed.color != null
? '#' + embed.color!.toString(16)
? '#' + embed.color!.toString(16).padStart(6, '0')
: 'rgb(var(--c-accent))',
}}>
<Show when={embed.author}>
Expand Down

0 comments on commit bfc0725

Please sign in to comment.