aeharding / voyager

Voyager — a mobile-first Lemmy client
https://vger.app
GNU Affero General Public License v3.0
1.49k stars 168 forks source link

Implement image carousel #677

Open paulhlschr opened 1 year ago

paulhlschr commented 1 year ago

At the moment Voyager renders all images in a post one block by another, which results in extra long posts and scroll procedures to reach the comment section. (See examples below.)

To address that and achieve Apollo parity, an image viewer carousel would be great!

Example Screenshot

aeharding commented 1 year ago

Thanks! This would be cool - however it will be difficult given Photoswipe libraries #1 assumption:

PhotoSwipe requires predefined image dimensions, you must define the width and height of each image.

https://photoswipe.com/getting-started/

(Since with not all images inlined we wouldn't have the image sizes immediately)

That being said, definitely worth doing.

aeharding commented 9 months ago

Attaching for reference - https://github.com/LemmyNet/lemmy/issues/981