Jdlrobson has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/372551 )

Change subject: Add mobile and desktop thresholds
......................................................................

Add mobile and desktop thresholds

This will allow us to centralise these values similar to tablet
device width and allow us to remove a Minerva/MobileFrontend
dependency

Bug: T171365
Change-Id: Ib9f843147db4473ce5590741e0fb490384b0007e
---
M includes/DefaultSettings.php
1 file changed, 14 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/51/372551/1

diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php
index 4e162f6..bf8fcdc 100644
--- a/includes/DefaultSettings.php
+++ b/includes/DefaultSettings.php
@@ -3826,12 +3826,25 @@
  */
 $wgResourceLoaderLESSVars = [
        /**
-        * Minimum available screen width at which a device can be considered a 
tablet/desktop
+        * Minimum available screen width at which a device can be considered a 
tablet
         * The number is currently based on the device width of a Samsung 
Galaxy S5 mini and is low
         * enough to cover iPad (768px). Number is prone to change with new 
information.
         * @since 1.27
         */
        'deviceWidthTablet' => '720px',
+       /**
+        * Minimum available screen width at which a device can be considered a 
desktop
+        * Number is prone to change with new information.
+        * @since 1.28
+        */
+       'deviceWidthDesktop' => '1000px',
+       /**
+        * Minimum available screen width at which a device can be considered a 
mobile device
+        * Many older feature phones have screens smaller than this value.
+        * Number is prone to change with new information.
+        * @since 1.28
+        */
+       'deviceWidthMobile' => '320px',
 ];
 
 /**

-- 
To view, visit https://gerrit.wikimedia.org/r/372551
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib9f843147db4473ce5590741e0fb490384b0007e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <jrob...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to