grain.social is a photo sharing platform built on atproto.

image_dialog -> photo_dialog

+4 -4
+3 -3
main.tsx
··· 160 160 } 161 161 if (!gallery) return ctx.next(); 162 162 ctx.state.meta = getGalleryMeta(gallery); 163 - ctx.state.scripts = ["image_dialog.js"]; 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 - {scripts?.includes("image_dialog.js") 960 - ? <script src="/static/image_dialog.js" /> 959 + {scripts?.includes("photo_dialog.js") 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 - console.log("Image Dialog not found, removing event listeners"); 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();