Commit graph

2947 commits

Author SHA1 Message Date
Translation updater bot bf0a735579
Localisation updates from https://translatewiki.net.
Change-Id: Ifeb1ef1bcfa9871d47b88d97519a09fac54bedef
2024-07-26 09:45:50 +02:00
jenkins-bot 4670e09260 Merge "Remove small piece of dead code from mmv.bootstrap.js" 2024-07-18 21:49:43 +00:00
jenkins-bot 4aeadfab12 Merge "Use much more precise original size for ratio calculations" 2024-07-18 21:49:42 +00:00
Translation updater bot 68381d1002
Localisation updates from https://translatewiki.net.
Change-Id: I4fe09a37c61599402f4b9f5571441c6a85674d9a
2024-07-16 09:40:39 +02:00
thiemowmde 4a37c70c95 Use much more precise original size for ratio calculations
Nowadays our HTML contains data-file-width="…" and data-file-height="…"
attributes. Previously this code was using <img width="…" height="…">
from the tiny thumbnail to calculate the aspect ratio. But this is
only a rough estimate and can be off by a significant amount of
pixels. Example:

Original image size: 4000 x 2100
Thumbnail in the article: 220 x 116
Available canvas height: 630
When using the thumbnail's size: 1195 x 630
When using the original size: 1200 x 630

I still use the old thumbnail size as a fallback just to be sure.
It's possible this is unreachable code by now. But it doesn't hurt
to keep it.

Change-Id: Iabd89762b09523249375bcbc7e4a573ef974e02e
2024-07-15 12:00:53 +02:00
thiemowmde ac2e3c4cbb Remove dead code from 2014 related to fullscreen pre-loading
This is disabled since 2014. See Ic145c8a for a longer explanation.

Bug: T66135
Change-Id: If0a1564676a25ba3ed2bcae099db77ec8fd3bae3
2024-07-15 11:59:20 +02:00
thiemowmde 92d400b9d6 Remove small piece of dead code from mmv.bootstrap.js
Calling .eq( 0 ) on a jQuery set that's known to contain only a
single element is pointless and doesn't do anything. .eq() is
documented to reduce the set to a single element.

Change-Id: I3f3a08d65a0490771e0282408e8c4711f3772c99
2024-07-15 11:45:10 +02:00
Translation updater bot 7e38d2e3f2
Localisation updates from https://translatewiki.net.
Change-Id: I12c76de56a0174684dbc5246f9ff691f0d0f43df
2024-07-15 09:24:29 +02:00
jenkins-bot 81e43b4136 Merge "Fix icons in RTL by using an element instead of ::after" 2024-07-12 11:33:27 +00:00
Translation updater bot d8b34f3cf4
Localisation updates from https://translatewiki.net.
Change-Id: I36df8bb78b59eaa289c25b737a1b0256e7065695
2024-07-12 09:41:32 +02:00
Ebrahim Byagowi 6fd605d4b2 Fix icons in RTL by using an element instead of ::after
Codex icons are auto-mirrored for RTL scripts but a pseudo-element
causes the auto-mirror selector to have incorrect order and that
builtin auto-mirror functionality of codex icons to not get trigged.

This change fixes it by adding a span to each icon so auto-mirror
can target an actual element instead of ::after pseudo-elements.

Bug: T369659
Change-Id: Ib5f9793a8ad10980d2742d1046c59306c943f960
2024-07-11 20:07:46 +03:30
jenkins-bot 3c1ece16c4 Merge "Fix dark mode issues with an extended 'Permission details' box" 2024-07-08 16:36:51 +00:00
jenkins-bot 21f3992cff Merge "Support djvu thumbnails in Mediaviewer" 2024-07-08 16:36:49 +00:00
Taavi Väänänen 1ea305b03b Fix dark mode issues with an extended 'Permission details' box
Fixes the shadows and borders that come with an extended 'Permission
details' box to use Codex tokens that support dark mode. To test this
out, view any image from Commons with a VRT permissions template (for
example [[File:Gordon_Highlander_steam_locomotive.jpg]]).

Bug: T369531
Change-Id: Ie2873b2ef2836c5b7ac2ded860dc2404f293f119
2024-07-08 16:16:15 +00:00
Translation updater bot b576891cff
Localisation updates from https://translatewiki.net.
Change-Id: Idef061be7688054a389046a5ad61ebdbe317ff3d
2024-07-08 09:33:29 +02:00
jenkins-bot afe1c08d2f Merge "ThumbnailInfo: support multi lingual SVG" 2024-07-04 19:30:11 +00:00
Derk-Jan Hartman a9bd92c734 Support djvu thumbnails in Mediaviewer
Bug: T72912
Change-Id: Ib71a60eef98d845be69c2fa4ac2044bb43a1c5b9
2024-07-04 21:28:39 +02:00
Translation updater bot fb91c37b1f
Localisation updates from https://translatewiki.net.
Change-Id: I284638089d8140dfb61f6b0c2f39e17b24b3c0a8
2024-07-02 09:50:09 +02:00
Simon Legner 4672f2eb57 ThumbnailInfo: support multi lingual SVG
Bug: T208564
Change-Id: Icf082ca0dc94bc4739fd31b795de76f8a0083b70
2024-07-01 22:49:10 +02:00
jenkins-bot dfc3818bdc Merge "Rename whitelist to allowlist" 2024-07-01 20:48:02 +00:00
jenkins-bot 4e1c2e841f Merge "Remove obsolete MultimediaViewerBootstrap.statusInfoDialog" 2024-07-01 19:58:03 +00:00
jenkins-bot 6fec8a09a4 Merge "build: Update jsdoc-wmf-theme to 1.1.0" 2024-07-01 19:54:18 +00:00
Simon Legner f58526901f Remove obsolete MultimediaViewerBootstrap.statusInfoDialog
Bug: T77349
Change-Id: I4814dfe57d05c547c24f22e2516be795670c27bf
2024-07-01 19:51:42 +00:00
jenkins-bot 111916cf08 Merge "MMV: Set body background and theme-color" 2024-07-01 15:34:16 +00:00
Translation updater bot 3445c4d486
Localisation updates from https://translatewiki.net.
Change-Id: I04320672ec1ece94b5ae5e30aa5644a9838d0e52
2024-07-01 09:25:51 +02:00
Simon Legner c872e64988 Rename whitelist to allowlist
Bug: T277952
Change-Id: I67ce70df18d9f9c86579cedcb63aa63685156b09
2024-06-27 20:50:08 +00:00
Derk-Jan Hartman 1b12172bb0 MMV: Set body background and theme-color
When opening the viewer set the body background and the theme-color
to match the background of the viewer. This provides a better
experience for (esp. mobile) browsers.

theme-color has to be overriden, as it can be inferred from the top
of the browser window, but images can be all kinds of colors, so it
is better to be explicit.

Bug: T368659
Change-Id: I313745a31bf17eef612dd89630b1bbc4cb57fd45
2024-06-27 21:25:01 +02:00
Derk-Jan Hartman 1833ce7f14 Metadatapanel: Improve spacing between license links
The license links listed on the right are vertically pretty tight
next to eachother. Add some line-height to make them more readable.

Bug: T365192
Change-Id: Idd0e3d845188178656017ac3158b0a3451c24294
2024-06-27 21:09:20 +02:00
Derk-Jan Hartman 2a8b140ed3 MMV square buttons
- Use square cdx icon only buttons
- gray transparent brackground
- opaque background on hover, active, focus
- Some fixes to the positioning and offsets of buttons and dialogs
- Move the dialogs to be in the same container as the buttons
  This is better for accessibility but also fixes the z-index issue

Bug: T365192
Change-Id: Idbc2a309fbca15bd528aaed7ca9bed584487c4f3
2024-06-26 20:28:38 +02:00
Ed Sanders d5f091876a build: Update jsdoc-wmf-theme to 1.1.0
Bug: T368081
Change-Id: I38cadd2c41cd87add401f7bf2410172c97f33d75
2024-06-26 12:22:54 +01:00
Translation updater bot bdb40a8e04
Localisation updates from https://translatewiki.net.
Change-Id: I272f197157c24caca9de09cb0e70084a7c1c446d
2024-06-26 09:21:54 +02:00
Translation updater bot 3200486a34
Localisation updates from https://translatewiki.net.
Change-Id: I886257a86b7ee43a9b2c966ffab23e84afe01924
2024-06-25 09:30:40 +02:00
Translation updater bot 7351ab6c77
Localisation updates from https://translatewiki.net.
Change-Id: Icd7be653ca13ee537f123a0fe84898ff3ec870b4
2024-06-24 09:25:46 +02:00
libraryupgrader 9ace66f52f build: Updating npm dependencies
* eslint-config-wikimedia: 0.28.0 → 0.28.2
* grunt-stylelint: 0.20.0 → 0.20.1
* stylelint-config-wikimedia: 0.17.1 → 0.17.2

Change-Id: Ibc43afb7ee2267918df3629ad0d893c12ec028a4
2024-06-22 07:39:02 +00:00
jenkins-bot 3ac5c2e650 Merge "LightboxImage.originalWidth needs to be a property" 2024-06-21 00:39:00 +00:00
jenkins-bot 9fbea4233b Merge "Remove obsolete property LightboxImage.filePageLink" 2024-06-18 19:04:53 +00:00
Translation updater bot 5b69c4b26e
Localisation updates from https://translatewiki.net.
Change-Id: I5ff5550a5a4a13fd4cfe6aad92a218e8c7a51808
2024-06-17 09:31:54 +02:00
jenkins-bot 66bdd243f7 Merge "Update AUTHORS" 2024-06-15 20:35:53 +00:00
Simon Legner c16d9fe1c2 Update AUTHORS
Content has been generated using the following command and .mailmap from mediawiki/core:
$ git log --format='%aN <%aE>' | sort | uniq --count | sort --reverse --numeric-sort

Change-Id: I107d75032b1ff57d2718db6f74958e0ea8bfecb2
2024-06-15 08:52:46 +02:00
jenkins-bot 33cb6e5ef2 Merge "Remove obsolete class IwTitle" 2024-06-14 20:40:09 +00:00
Simon Legner bc63438a16 Remove obsolete fields imageDisplayedCount and metadataDisplayedCount
Bug: T77349
Change-Id: Ie553107c33f24b26571ebd93e2458b4878c09f3b
2024-06-13 22:25:03 +02:00
Simon Legner a951a360d5 Remove obsolete property LightboxImage.filePageLink
Bug: T77349
Change-Id: I9c4fa491cb6bdc2668c6d21cc314c5290847bbc1
2024-06-13 22:17:00 +02:00
Simon Legner 8ecfc1aa7d LightboxImage.originalWidth needs to be a property
mmv.displayPlaceholderThumbnail overrides this value using ImageInfoProvider.

Bug: T64039
Follow-Up: Ic7c5889064492fc88dae33271b635c5327b091e1
Change-Id: I08d024f81336a76439f51b7684446f8725ddb905
2024-06-13 21:48:09 +02:00
Simon Legner 048c359806 Remove obsolete class IwTitle
Bug: T77349
Change-Id: Idc81f0d97ebfef725bcdb93ca50deac197d67590
2024-06-13 21:11:58 +02:00
Umherirrender 33f327dc69 tests: Use renamed class BundleSizeTestBase
Follow-Up: I131e0d85bd14e75aaebd6f212b2e64a45d4c73a2
Change-Id: I0361c994af6320f4b8100390e8f43da3b92bb689
2024-06-12 20:38:07 +02:00
Translation updater bot a63fb2f42f Localisation updates from https://translatewiki.net.
Change-Id: I87bf51a0be67de8655fdaee87df8ef5d307c6c44
2024-06-11 09:55:04 +02:00
Translation updater bot 8e364ecad6 Localisation updates from https://translatewiki.net.
Change-Id: Iaba451121dc330d42a022facf187fc42bb42e642
2024-06-10 09:55:48 +02:00
Umherirrender d9742f34f3 Use new namespace for Output hooks
Change-Id: I1e82fe02b676ecc776b0412f60bde18b3c944da2
2024-06-09 18:50:10 +02:00
Ed Sanders 39968fdb9a Update stylelint-config-wikimedia to 0.17.1
Change-Id: Icaa6d43338a747dbbf1d05d50646d6c7a0edda6d
2024-06-07 17:34:06 +01:00
Ed Sanders 27459e19dc Fix JSDoc complex return types
Change-Id: Ia50a9f086ebb0abcaf0409dac33f66178275cd30
2024-06-07 17:33:16 +01:00