Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
SupertigerDev committed Dec 28, 2024
1 parent aae3100 commit bfa4b15
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/DashboardPane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,7 @@ const PresenceItem = (props: { presence: Presence }) => {
return store.users.get(props.presence.userId);
};

const isEmoji = () => activity().emoji;
const imgSrc = createMemo(() => {
if (activity()?.emoji) {
return emojiToUrl(activity()?.emoji!, false, 90);
Expand All @@ -608,7 +609,13 @@ const PresenceItem = (props: { presence: Presence }) => {
"background-image": `url(${imgSrc()})`,
}}
/>
<img src={imgSrc()} class={activityImageStyles} />
<img
src={imgSrc()}
class={activityImageStyles}
style={{
"background-color": isEmoji() ? "transparent" : "black",
}}
/>
</Show>

<div class={activityDetailsStyles}>
Expand Down

0 comments on commit bfa4b15

Please sign in to comment.