A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
[skip ci]
Hampus Kraft3d0631dd85a9
diff --git a/fluxer_app/src/components/popouts/UserProfileBadges.module.css b/fluxer_app/src/components/popouts/UserProfileBadges.module.cssindex a249ead08..ebaab8aa3 100644--- a/fluxer_app/src/components/popouts/UserProfileBadges.module.css+++ b/fluxer_app/src/components/popouts/UserProfileBadges.module.css@@ -63,16 +63,10 @@font-variant-numeric: tabular-nums;white-space: nowrap;pointer-events: none;- text-shadow:- 0 0 6px var(--glow-color),- 0 0 14px color-mix(in srgb, var(--glow-color) 50%, transparent);}:global(.theme-light) .sequenceBadge {color: var(--brand-primary);- text-shadow:- 0 0 5px color-mix(in srgb, var(--glow-color) 60%, transparent),- 0 0 12px color-mix(in srgb, var(--glow-color) 30%, transparent);}.sequenceBadgeMobile {diff --git a/fluxer_app/src/components/popouts/UserProfileBadges.tsx b/fluxer_app/src/components/popouts/UserProfileBadges.tsxindex e663c87af..f945726fe 100644--- a/fluxer_app/src/components/popouts/UserProfileBadges.tsx+++ b/fluxer_app/src/components/popouts/UserProfileBadges.tsx@@ -45,23 +45,9 @@ interface IconBadge extends BaseBadge {interface TextBadge extends BaseBadge {type: 'text';text: string;- glowColor: string;}type Badge = IconBadge | TextBadge;-const GLOW_COLORS = [- '#ff6b9d', // rose- '#c084fc', // violet- '#60a5fa', // sky blue- '#34d399', // emerald- '#fbbf24', // amber- '#f472b6', // pink- '#818cf8', // indigo- '#2dd4bf', // teal- '#fb923c', // orange- '#a78bfa', // purple-] as const;-interface UserProfileBadgesProps {user: UserRecord;profile: ProfileRecord | null;@@ -149,7 +135,6 @@ export const UserProfileBadges: React.FC<UserProfileBadgesProps> = observer(text: `#${profile.premiumLifetimeSequence}`,tooltip: t`Visionary ID #${profile.premiumLifetimeSequence}`,url: badgeUrl,- glowColor: GLOW_COLORS[profile.premiumLifetimeSequence % GLOW_COLORS.length],});}}@@ -188,11 +173,7 @@ export const UserProfileBadges: React.FC<UserProfileBadgesProps> = observer(badge.type === 'icon' ? (<img src={badge.iconUrl} alt={badge.tooltip} className={badgeClassName} />) : (- <span- className={clsx(styles.sequenceBadge, sequenceClassName)}- style={{'--glow-color': badge.glowColor} as React.CSSProperties}- aria-hidden="true"- >+ <span className={clsx(styles.sequenceBadge, sequenceClassName)} aria-hidden="true">{badge.text}</span>);