Fix being able to drag certain elements

This commit is contained in:
Braydon 2024-09-04 15:44:23 -04:00
parent 8f1805d547
commit 3479d98073

View File

@ -127,7 +127,7 @@ const BannerAvatar = ({
discordUser: DiscordUser; discordUser: DiscordUser;
dcdnUser: DCDNUser; dcdnUser: DCDNUser;
}): ReactElement => ( }): ReactElement => (
<div className="relative"> <div className="relative pointer-events-none">
<Image <Image
className="border-2 border-zinc-900 rounded-t-xl" className="border-2 border-zinc-900 rounded-t-xl"
src={`https://cdn.discordapp.com/banners/${discordUser.id}/${dcdnUser.banner}.webp?size=1024`} src={`https://cdn.discordapp.com/banners/${discordUser.id}/${dcdnUser.banner}.webp?size=1024`}
@ -170,6 +170,7 @@ const Badges = ({ dcdnUser }: { dcdnUser: DCDNUser }): ReactElement => (
alt="Discord Profile Badge" alt="Discord Profile Badge"
width={22} width={22}
height={22} height={22}
draggable={false}
/> />
</SimpleTooltip> </SimpleTooltip>
))} ))}
@ -240,7 +241,7 @@ const SpotifyActivity = ({ spotify }: { spotify: Spotify }): ReactElement => {
{/* Spotify Logo */} {/* Spotify Logo */}
<Image <Image
className="ml-auto" className="ml-auto pointer-events-none"
src="https://cdn.rainnny.club/97JxTtnlhSun.png" src="https://cdn.rainnny.club/97JxTtnlhSun.png"
alt="Spotify Logo" alt="Spotify Logo"
width={18} width={18}
@ -271,7 +272,7 @@ const GameActivity = ({ activity }: { activity: Activity }): ReactElement => {
<div className="flex gap-2 items-center"> <div className="flex gap-2 items-center">
{/* Artwork */} {/* Artwork */}
<Image <Image
className="rounded-lg" className="rounded-lg pointer-events-none"
src={`https://cdn.discordapp.com/app-assets/${activity.application_id}/${activity.assets?.large_image || activity.assets?.small_image}.png?size=1024`} src={`https://cdn.discordapp.com/app-assets/${activity.application_id}/${activity.assets?.large_image || activity.assets?.small_image}.png?size=1024`}
alt={`Game artwork of ${activity.name}`} alt={`Game artwork of ${activity.name}`}
width={54} width={54}