Commit graph

7 commits

Author SHA1 Message Date
Bartosz Dziewoński
8fdc5b7343 Revert gallery changes in 1.40.0-wmf.18 & .19
This reverts change d94a164509 (causing T326990) and followups.

Revert "Gallery: Improve initial state and fix thumbnail sizes"
This reverts commit 62763e5d52.

Revert "Fix exception in `<gallery mode="slideshow">` with missing images"
This reverts commit 160e7a50e7.

Revert "Galleries: Set anchor height as well as img height"
This reverts commit 9c8104e315.

Revert "Galleries: Make gallery code more resilient to HTML transformations"
This reverts commit 8c98123a28.

Revert "Galleries on mobile"
This reverts commit d94a164509.

Bug: T326990
Change-Id: I235f797ca64f44b3ab0b5c6784878ed56c45a82b
2023-01-17 22:15:30 +00:00
Jon Robson
62763e5d52 Gallery: Improve initial state and fix thumbnail sizes
- Makes gallery a fixed height (500px)
- Removes resize in gallery, fixing height to 500px
- Increase the default gallery thumbnail size to reduce
pixelation
- Gallery now always loads thumbnails of 640px width, avoiding
variable width calls.

Bug: T326270
Change-Id: I6d916ffb1301bd2f4a258ec50990c4347f9c63e7
2023-01-12 18:17:28 +00:00
Bartosz Dziewoński
160e7a50e7 Fix exception in <gallery mode="slideshow"> with missing images
Follow-up to 8c98123a28.

Change-Id: Idf7aeff61eeebb1f7789461e82d080c2287781fd
2023-01-11 01:37:24 +01:00
Jon Robson
8c98123a28 Galleries: Make gallery code more resilient to HTML transformations
The gallery code should be more resilient to HTML transformations
that can occur inside mobile app and MobileFrontend (or gadgets).

Data attributes are generally left untouched, so provide this
information as part of the output of the LI element so that the
gallery code can make use of it where possible.

This resolves the problem of lazy loaded images in the mobile site
meaning the hook added for MobileFrontend can also be removed.

Follow up to I58e18924c02fe12baba820f25b7a6f0c437a206b

Bug: T194887
Change-Id: I186bb0dbbea84d4dbb1d7b55278c69b2b46603de
2023-01-05 23:23:09 +00:00
Umherirrender
0688dd7c6d Set method visibility for various constructors
Change-Id: Id3c88257e866923b06e878ccdeddded7f08f2c98
2019-12-03 20:17:30 +01:00
pppery
7fd737c4aa Add showThumbnails option to slideshow galleries
This option causes the thumbnail images for the slideshow to be visible
as soon as the slideshow is loaded. They can still be closed normally.`

Bug: T147913
Change-Id: Iae6fd4f016d9fc98280d4ba92e4332ff06e1fb9e
2016-12-20 20:07:14 +00:00
Ed Sanders
af7ffaeeec Rename 'slider' gallery mode to 'slideshow'
Bug: T140093
Change-Id: I6f01344b9ac61e3d2a8e7a9d920ba37786537ff8
2016-07-12 14:48:58 +01:00
Renamed from includes/gallery/SliderImageGallery.php (Browse further)