π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
caption fin
Manav Rathi2490b5ca4fd4
diff --git a/web/apps/photos/src/styles/global.css b/web/apps/photos/src/styles/global.cssindex 718b8a6f8a..007c8d5d20 100644--- a/web/apps/photos/src/styles/global.css+++ b/web/apps/photos/src/styles/global.css@@ -174,8 +174,9 @@ body {.pswp-ente .pswp__caption {color: white;position: absolute;- bottom: 8px;- right: 8px;+ bottom: 0;+ right: 0;+ margin: 10px;padding: 6px 16px;border-radius: 2px;background-color: rgba(0 0 0 / 0.2);@@ -184,4 +185,10 @@ body {text-align: right;max-width: 375px;max-height: 200px;+ overflow: hidden;+ text-overflow: ellipsis;+ display: -webkit-box;+ -webkit-box-orient: vertical;+ -webkit-line-clamp: 4;+ line-clamp: 4;}diff --git a/web/packages/gallery/components/viewer/photoswipe.ts b/web/packages/gallery/components/viewer/photoswipe.tsindex c13570ba49..6e15989a5c 100644--- a/web/packages/gallery/components/viewer/photoswipe.ts+++ b/web/packages/gallery/components/viewer/photoswipe.ts@@ -626,11 +626,14 @@ export class FileViewerPhotoSwipe {name: "caption",order: 50,appendTo: "root",- html: "<p/>",+ tagName: "p",onInit: (captionElement, pswp) =>pswp.on("change", () => {- captionElement.innerText =- currentFileAnnotation().caption ?? "";+ const caption = currentFileAnnotation().caption ?? "";+ captionElement.innerText = caption;+ captionElement.style.visibility = caption+ ? "visible"+ : "hidden";}),});});