-
-
Notifications
You must be signed in to change notification settings - Fork 68
Declare skin to be responsive, remove extra viewport tag (fixes #470) #471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -239,6 +239,7 @@ function () { | |
| return new Chameleon( [ | ||
| 'name' => 'chameleon', | ||
| 'styles' => $styles, | ||
| 'responsive' => true, | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this a new MediaWiki feature? Since when is it available?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it's been there "for a while". As far as Chameleon support is concerned, it's available in MW 1.39+.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From a quick git blame, it looks like emitting the viewport tag for a true |
||
| 'bodyOnly' => true | ||
| ] ); | ||
| } ); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is based on Bootstrap 4's recommended meta tag:
https://getbootstrap.com/docs/4.6/getting-started/introduction/#responsive-meta-tag
Can you confirm that the difference between that and MediaWiki's tag does not cause issues or changes in mobile behavior?
(from #470 (comment))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW, my (limited) understanding is that
shrink-to-fitis a 10-year-old Safari-specific "band-aid": https://www.scottohara.me/blog/2018/12/11/shrink-to-fit.htmlConversely,
user-scalable=yesis the default value for viewport meta tags. (And the default min/max are 0.1 and 10, according to MDN.)(As far as real-world testing, all I did is check that the PR made my observed misbehavior go away, on a handful of browsers on Android.)