Rasel160 has uploaded a new change for review.
https://gerrit.wikimedia.org/r/61289
Change subject: added support for screen width upto 800px
......................................................................
added support for screen width upto 800px
-there is still overflow in the "learn" page on width lower than 950px due to
image size
Change-Id: I1b3834a08dc805aa064ab3a99147059688ceff32
---
M UploadWizardPage.js
1 file changed, 22 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/UploadWizard
refs/changes/89/61289/1
diff --git a/UploadWizardPage.js b/UploadWizardPage.js
index 85d51a1..56e8829 100644
--- a/UploadWizardPage.js
+++ b/UploadWizardPage.js
@@ -24,6 +24,28 @@
$( document ).ready( function () {
// show page.
mw.UploadWizardPage();
+
+ //on load check for low resulution window
+ lowResScreen();
+
+ $(window).resize(function() {
+ lowResScreen();
+ });
+
+ //checks for small window, and applies css to adjust
+ function lowResScreen(){
+ if($('body').width()<951){
+ $('#mwe-upwiz-steps').css('width', '570px','important');
+ $('#mwe-upwiz-content').css('width', '610px','important');
+ $('#mwe-upwiz-content').css('margin-left',
'-34px','important');
+ }
+ //reset if the window is expanded
+ else{
+ $('#mwe-upwiz-steps').css('width', 'auto');
+ $('#mwe-upwiz-content').css('width', 'auto');
+ $('#mwe-upwiz-content').css('margin-left', 'auto');
+ }
+ }
} );
} )( jQuery, mediaWiki );
--
To view, visit https://gerrit.wikimedia.org/r/61289
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I1b3834a08dc805aa064ab3a99147059688ceff32
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/UploadWizard
Gerrit-Branch: master
Gerrit-Owner: Rasel160 <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits