feat: explicit guest button

This commit is contained in:
Xyphyn committed 2023-10-13 14:08:07 -07:00
1 parent 4af32dc3f0
commit e35f6887e3
4 files changed
+26 -9

No files matched your search

+4 -1
View File
@@ -6,6 +6,7 @@
export let selected: boolean = false
export let index: number = 0
export let size: number = 20
export let guest: boolean = false
</script>
{#if profile}
@@ -26,7 +27,9 @@
size={`${size}`}
title={profile.username}
class="text-blue-500 flex-shrink-0"
style={profile.color
style={guest
? `color: gray`
: profile.color
? `color: ${profile.color}`
: `filter: hue-rotate(${index * 50}deg)`}
/>