Commit graph

2665 commits

Author SHA1 Message Date
Andrew Kostka 76e0b7ed3d Fix popup footer covering reference content
Links at the end of reference previews were covered by the footer
which made them unclickable.

Bug: T277364
Change-Id: I66313a282f24fd45804574577d8e071572de92b6
2021-03-26 16:49:03 +01:00
Translation updater bot 091b7aae59 Localisation updates from https://translatewiki.net.
Change-Id: I03ea5eb3306e3cdc51b74c7e632ecf53358705e9
2021-03-26 08:50:42 +01:00
Translation updater bot 13ea6453f5 Localisation updates from https://translatewiki.net.
Change-Id: I282a02ebabd53787ac375e5309f1f8c08e791c8c
2021-03-25 08:41:29 +01:00
Andrew Kostka 9a7539391f Messages for a separate reference previews preference
Bug: T277638
Change-Id: I8294cea7f8677b8ff09ce7deff3e69ed6e6ea93a
2021-03-24 10:25:56 +01:00
Translation updater bot 048bcd291f Localisation updates from https://translatewiki.net.
Change-Id: Ia3f246bd3d64cde4324b52a254ca000dd9c005d3
2021-03-23 08:25:23 +01:00
Noam Rosenthal e4ee4ed5cf Set thumbnail width to 215px
When it was min-width: 215px, it could sometime
grow and break the popup's layout.

Bug: T276668
Change-Id: If88887920c48c0a7f6530d1a7600f25fd2a9579b
2021-03-22 14:40:27 -07:00
jenkins-bot f58518e3ed Merge "Add tests for bitmask code" 2021-03-19 10:19:17 +00:00
jenkins-bot 7acef1f1f4 Merge "Use flags to represent settings" 2021-03-19 10:19:14 +00:00
Translation updater bot 5964b33f46 Localisation updates from https://translatewiki.net.
Change-Id: Ic962c35f646d98d679d87a0c3c075416d2716cb7
2021-03-19 08:26:07 +01:00
Translation updater bot 626778db8b Localisation updates from https://translatewiki.net.
Change-Id: Iff3b8f0d6ac077a2e33d9b175249d7fb10438cc4
2021-03-17 08:25:46 +01:00
Translation updater bot 23a116ddf7 Localisation updates from https://translatewiki.net.
Change-Id: I695783192f9c89effb3fadadc53a55757ae15954
2021-03-15 08:41:19 +01:00
Translation updater bot 9aa779ba35 Localisation updates from https://translatewiki.net.
Change-Id: I1c8e248dd40abbfe876b03ad776f062da44ab39a
2021-03-12 08:46:38 +01:00
Thiemo Kreuz e1ca9e940e Fix bottom margin as long as settings icon isn't shown
The bottom margin appears significantly smaller in popups that
open to the top. This is because the triangle ("pointer") falls
within this margin, not outside of it.

This is only temporary. Later the settings icon will always be
there, and the issue is gone.

Bug: T276200
Change-Id: Ic0f0447b8fbd3e6ff7035bdc9380c19a236f091c
2021-03-11 19:30:39 +01:00
WMDE-Fisch 97538eb9e1 Add tests for bitmask code
Bug: T276716
Change-Id: I7c21e909f121217e43bf5072061bda422f390693
2021-03-11 14:05:21 +01:00
WMDE-Fisch 58f820009e Use flags to represent settings
To reduce size of code added to the <head> and increase performance.
The increased bundlesize is still less than the size spared bytes in
ResourceLoaderGetConfigVars. - But nevertheless the main gain is loading
less in the <head> anyways.

To avoid further complexity in the code, the bitmask is converted to
the according config setting early on instead of adding checks on the
bitmask all over the place.

Tests will be added in follow ups.

Bug: T276716
Change-Id: Ib4f82bed58295b25f0a41cb37e36244e45f16317
2021-03-11 13:38:06 +01:00
Translation updater bot 91d308ab6f Localisation updates from https://translatewiki.net.
Change-Id: Ia9902b85628e6ea9342d3fa3ddc42640aa1442a1
2021-03-11 08:38:25 +01:00
Translation updater bot 0a9b70f3fe Localisation updates from https://translatewiki.net.
Change-Id: I4d622ecd920c634fe7a7db1e11a87afe2355c71a
2021-03-10 08:32:33 +01:00
Translation updater bot a0781d21e1 Localisation updates from https://translatewiki.net.
Change-Id: I9f84a52bcaa6e31f082625e579e1ff98fa467d10
2021-03-08 08:46:58 +01:00
Thiemo Kreuz 919a7a5a30 Don't use {{int:…}} in full sentence messages
Directly referencing other messages is sometimes a good idea,
e.g. in a sentence like "Please look for a button with the
label \"{{int:cancel}}\"."

But here the word is used as part of a sentence. "This is
really not great, because in some languages the word can
change according to grammar." (T276218#6886266)

This patch doesn't change the wording of the messages, and
should not need PM approval. The qqq.json entries are
annotations for tranalators and don't need PM approval either.

The only additional change is that I update the gadget's names
to be their canonical ones everywhere.

Bug: T276218
Change-Id: I8a05f3871fa1d5d0570e1cba90ead29f9ea3b7df
2021-03-05 16:01:00 +01:00
Andrew Kostka 9fcdaf5c00 Fix maximum height of reference popups when in beta
This fixes a small regression introduced in Ia61f1b7. When
reference previews are still enabled as a beta feature the
unnecessary footer is hidden, therefore, we need to account
for this when calculating the dialog's height.

Bug: T234205
Change-Id: I1c142019031ab954550e237ddb23824da1aee8db
2021-03-05 12:52:13 +00:00
Thiemo Kreuz 24c75d11b3 Fix maximum height of reference popups
In patch I2a82831 we removed a line `margin-bottom: 16px`. This
margin defaults to 47px now. This made the popup bigger. This
patch fixes this.

The original size of 403px was introduced in I6036968 (T246029)
and already fixed one time in I82ea489 (T246029).

Bug: T234205
Change-Id: Ia61f1b79f8450d6249e190ab4ed1565ed5ac77be
2021-03-05 11:50:21 +00:00
Translation updater bot 3dea2e3c81 Localisation updates from https://translatewiki.net.
Change-Id: I843fa42f0401c6921d117a293fdf283fe061d59a
2021-03-05 08:56:29 +01:00
jenkins-bot 189f3cb0a2 Merge "remove spacing, when the footer is empty" 2021-03-04 16:45:31 +00:00
Svantje Lilienthal fb0863f101 remove spacing, when the footer is empty
Bug: T276200
Change-Id: Id5d30a53251bdf3674388cbdb29d93a0d52b3266
2021-03-04 16:22:55 +00:00
Thiemo Kreuz 66b5e307e1 Minor tweaks to the wording of gadget-related messages
Bug: T276218
Change-Id: I6b9ebec33f39e938855c5ee9b2f9665ea92560d0
2021-03-04 09:53:41 +01:00
Translation updater bot 39a309ddbc Localisation updates from https://translatewiki.net.
Change-Id: Ie8d5ee5889d0f00a035b3ae1b161b40de5a85b56
2021-03-04 08:39:08 +01:00
jenkins-bot f92e41c6ae Merge "Change wording around gadgets and user scripts" 2021-03-03 15:53:09 +00:00
WMDE-Fisch f7e60f2016 Change wording around gadgets and user scripts
The text could be misleading. There are global user scripts but no
global gadgets currently.

Also removing spaces around the pipes in links.

Bug: T276218
Change-Id: Ic29258c107393640e605bffff2ebf1c73e09c363
2021-03-03 12:22:28 +01:00
Noam Rosenthal e49f7d74e4 Take direction into account for clip-path cursor
The cursor needs to be flipped when:
- LTR document and X is flipped
- RTL document and X is not flipped

Bug: T276112
Change-Id: I66d31135833b649643c5ca123458036c00666f7d
2021-03-03 12:57:56 +02:00
Translation updater bot 2c51058bda Localisation updates from https://translatewiki.net.
Change-Id: I89f473db2434a432fb5f1b650493833f536f1a0b
2021-03-02 08:50:21 +01:00
jenkins-bot e441052cb0 Merge "Combine page and reference preview preferences" 2021-03-01 11:10:17 +00:00
Umherirrender eaaf560d99 build: Updating mediawiki/mediawiki-codesniffer to 35.0.0
Change-Id: Ib411b8fbec93f469e4f4812f60f8349207744ecd
2021-02-26 23:42:29 +01:00
Translation updater bot 89f5a27700 Localisation updates from https://translatewiki.net.
Change-Id: I4e4dd8ed1be2080395eeb2be48f3516ed94b386b
2021-02-26 08:57:24 +01:00
Andrew Kostka 82d54945e4 Combine page and reference preview preferences
Update copy and remove unnecessary reference preview preference
in favor of using the default preference. It seems there is no
stable method to link to the subsections on the preference page
for gadgets. So in all cases does the link just point to the
gadgets pref page.

These changes should only be visible when reference previews
are no longer marked as a beta feature.

Bug: T265709
Change-Id: I7b8ab91331092ada04b230315373548673b9272c
2021-02-25 10:21:16 +00:00
jenkins-bot 229e521fcb Merge "Finalize ReferencePreviewsPopups event platform migration" 2021-02-25 09:09:01 +00:00
Translation updater bot 22ed5e2e1b Localisation updates from https://translatewiki.net.
Change-Id: I4f2f1f2ba204bfad97efc2eb1f2dabf7b6e4962a
2021-02-25 08:39:13 +01:00
Adam Wight 8a857103f7 Finalize ReferencePreviewsPopups event platform migration
Bug: T275009
Change-Id: Ia8d54ea90b4e5fa8ad52a5c809948c90577c908d
2021-02-24 19:48:51 +00:00
Translation updater bot 97d064f363 Localisation updates from https://translatewiki.net.
Change-Id: Iae6fdfef8019d91b0177376f3ea27116c3da8fbc
2021-02-23 08:49:11 +01:00
Thiemo Kreuz 513899d808 Much more relaxed reference type detection
* When there are multiple <cite> elements, the first that contains a
  known class is used. We assume the earlier one must be the relevant
  one.
* When there are multiple known classes in e.g. <cite class="web news">,
  the last one is used. This follows how CSS works.
* There is extra validation if the corresponding message exists, just
  to be sure. This is cheap.

Bug: T274979
Change-Id: Iee3481ea16af96b40faf978e254718e5a48917f3
2021-02-22 11:55:03 +01:00
Translation updater bot 94ed9fedb2 Localisation updates from https://translatewiki.net.
Change-Id: I100eb341d790d439fcde02eef97b383af872a13e
2021-02-22 08:53:23 +01:00
Translation updater bot 663963fdd3 Localisation updates from https://translatewiki.net.
Change-Id: I8887235e1a853d073865b7343ce59f6a9e02e656
2021-02-19 08:32:35 +01:00
Translation updater bot fc58c3b924 Localisation updates from https://translatewiki.net.
Change-Id: I6ca5d022cecf9c3dea3ccf54e0d05df674f00a4b
2021-02-18 08:43:38 +01:00
jenkins-bot 3fd74a2502 Merge "Add cogwheel to disable ReferencePreviews" 2021-02-17 08:19:29 +00:00
Translation updater bot b3215eec78 Localisation updates from https://translatewiki.net.
Change-Id: I20df74f3f92230b0fff370b2bbc6427d3519a574
2021-02-17 08:43:19 +01:00
Svantje Lilienthal 1962372a44 Add cogwheel to disable ReferencePreviews
I added the common styling for the setting icon to the popup.less
and removed the now empty pagePreview.less.

Bug: T234205
Change-Id: I2a82831bc71a4208c4b66c18e2a4613127c43e1f
2021-02-16 15:39:43 +01:00
jenkins-bot 8c575f9cef Merge "Add new reference type "note" without an icon" 2021-02-16 11:29:02 +00:00
Translation updater bot 9ceb0befe8 Localisation updates from https://translatewiki.net.
Change-Id: Icb9eddd48434940e7d9c41ef98392853f7b0440e
2021-02-15 10:06:10 +01:00
Thiemo Kreuz ef4b032513 Add new reference type "note" without an icon
Bug: T274343
Change-Id: Ib9f3fe98baf1d194e686b007a9c535f2b49ac19d
2021-02-11 10:15:36 +01:00
Translation updater bot 2aa2cd6841 Localisation updates from https://translatewiki.net.
Change-Id: Idffa237f6db34907df521897e9f996c4d8a71a47
2021-02-11 08:39:55 +01:00
Translation updater bot 2964abb369 Localisation updates from https://translatewiki.net.
Change-Id: I783faf0030b58c0b7f4474befc5ef006e7dfd8ea
2021-02-10 08:38:58 +01:00