Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.
TypeScript albumsexif-extractiongeocodinglive-photomotion-photophoto-galleryphoto-sharingwebgl-viewer
fix(gallery): prevent focus outline after pointer-opening photo viewer
Timothy Yinff3635814cf4
diff --git a/packages/gallery/app/components/masonry/item/Photo.vue b/packages/gallery/app/components/masonry/item/Photo.vueindex b8c63056..59673d76 100644--- a/packages/gallery/app/components/masonry/item/Photo.vue+++ b/packages/gallery/app/components/masonry/item/Photo.vue@@ -292,6 +292,12 @@ const handleClick = (event: Event) => {return}+ // Pointer activation should not leave a keyboard focus outline behind when+ // Escape closes the viewer. Keep focus for keyboard-activated photos.+ if (event instanceof MouseEvent && event.detail > 0) {+ photoRef.value?.blur()+ }+// Track photo view event in Google Analyticsgtag('event', 'photo_view', {photo_id: props.photo.id,