Skip to content

Commit 29adef5

Browse files
committed
images not draggable
1 parent c26cc73 commit 29adef5

File tree

3 files changed

+22
-5
lines changed

3 files changed

+22
-5
lines changed

src/components/Game.astro

+14-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ const { title, img, genres, platforms, release, price } = Astro.props;
1616
typeof title === "string" ? (
1717
title
1818
) : (
19-
<img src={title.src} alt={title.alt} class="h-24 aspect-auto" />
19+
<img
20+
src={title.src}
21+
alt={title.alt}
22+
class="h-24 aspect-auto"
23+
draggable="false"
24+
/>
2025
)
2126
}
2227
</h2>
@@ -29,6 +34,7 @@ const { title, img, genres, platforms, release, price } = Astro.props;
2934
>{
3035
platforms.map((x) => (
3136
<img
37+
draggable="false"
3238
class="inline-block h-4 aspect-auto"
3339
src={
3440
x === "windows"
@@ -76,12 +82,18 @@ const { title, img, genres, platforms, release, price } = Astro.props;
7682
class="block my-4 h-32 md:h-64 aspect-auto"
7783
src={x}
7884
class="block"
85+
draggable="false"
7986
/>
8087
),
8188
)}
8289
</div>
8390
) : (
84-
<img class="block h-32 aspect-auto" src={img} class="block" />
91+
<img
92+
class="block h-32 aspect-auto"
93+
src={img}
94+
class="block"
95+
draggable="false"
96+
/>
8597
)
8698
}
8799
</section>

src/components/Header.astro

+7-2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,18 @@ import bmsLettering from "../assets/bms_lettering.svg";
44
---
55

66
<header class="py-2 px-4 shadow bg-neutral-800 shadow-black">
7-
<a href="/" class="flex flex-row gap-2 justify-start items-center">
8-
<img class="block w-24 aspect-square" src={bmsLogo.src} />
7+
<a
8+
href="/"
9+
class="flex flex-row gap-2 justify-start items-center"
10+
draggable="false"
11+
>
12+
<img class="block w-24 aspect-square" src={bmsLogo.src} draggable="false" />
913
<h1 class="block text-2xl font-bold text-white">
1014
<img
1115
class="block h-16 aspect-auto"
1216
src={bmsLettering.src}
1317
alt="Bloodmage Software"
18+
draggable="false"
1419
/>
1520
</h1>
1621
</a>

src/components/Steam.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const { href } = Astro.props;
88
target="_blank"
99
class="inline-flex flex-row gap-2 items-center py-1 px-2 m-2 rounded cursor-pointer bg-slate-600 w-fit hover:bg-sky-600"
1010
>
11-
<img src={steamLogo.src} class="h-8 aspect-square" />
11+
<img src={steamLogo.src} class="h-8 aspect-square" draggable="false" />
1212
<span class="text-white">
1313
<slot />
1414
</span>

0 commit comments

Comments
 (0)