tangled
alpha
login
or
join now
grain.social
/
grain
38
fork
atom
grain.social is a photo sharing platform built on atproto.
38
fork
atom
overview
issues
2
pulls
pipelines
image_dialog -> photo_dialog
chadtmiller.com
10 months ago
3b5d5d89
47129502
+4
-4
2 changed files
expand all
collapse all
unified
split
main.tsx
static
photo_dialog.js
+3
-3
main.tsx
···
160
160
}
161
161
if (!gallery) return ctx.next();
162
162
ctx.state.meta = getGalleryMeta(gallery);
163
163
-
ctx.state.scripts = ["image_dialog.js"];
163
163
+
ctx.state.scripts = ["photo_dialog.js"];
164
164
return ctx.render(
165
165
<GalleryPage favs={favs} gallery={gallery} currentUserDid={did} />,
166
166
);
···
956
956
href="https://unpkg.com/@fortawesome/fontawesome-free@6.7.2/css/all.min.css"
957
957
preload
958
958
/>
959
959
-
{scripts?.includes("image_dialog.js")
960
960
-
? <script src="/static/image_dialog.js" />
959
959
+
{scripts?.includes("photo_dialog.js")
960
960
+
? <script src="/static/photo_dialog.js" />
961
961
: null}
962
962
</head>
963
963
<body class="h-full w-full dark:bg-zinc-950 dark:text-white">
+1
-1
static/image_dialog.js
static/photo_dialog.js
···
15
15
const observer = new MutationObserver(() => {
16
16
const modal = document.getElementById("photo-dialog");
17
17
if (!modal) {
18
18
-
console.log("Image Dialog not found, removing event listeners");
18
18
+
console.log("Photo Dialog not found, removing event listeners");
19
19
document.body.removeEventListener("touchstart", onTouchStart);
20
20
document.body.removeEventListener("touchend", onTouchEnd);
21
21
observer.disconnect();