Kaldari has uploaded a new change for review.
https://gerrit.wikimedia.org/r/203959
Change subject: Don't let the Wikitext editor over-expand
......................................................................
Don't let the Wikitext editor over-expand
Tested locally on iPhone 6/6+, 5, and 5S.
Bug: T95465
Change-Id: I831f5e8fee315c9375cc7153ea3fd254137daf49
(cherry picked from commit a3c61b84b5f380c29b1e8da3cd008f6a239929db)
---
M less/modules/editor/editor.less
M templates/modules/editor/content.hogan
2 files changed, 6 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend
refs/changes/59/203959/1
diff --git a/less/modules/editor/editor.less b/less/modules/editor/editor.less
index 1c84ccf..f30abd1 100644
--- a/less/modules/editor/editor.less
+++ b/less/modules/editor/editor.less
@@ -18,8 +18,13 @@
display: none;
}
+ .wikitext-editor-container {
+ height: 100%;
+ }
+
.wikitext-editor {
padding: 10px @contentMargin;
+ max-height: 100%;
}
.summary-request {
diff --git a/templates/modules/editor/content.hogan
b/templates/modules/editor/content.hogan
index 2b58821..985aaab 100644
--- a/templates/modules/editor/content.hogan
+++ b/templates/modules/editor/content.hogan
@@ -1,4 +1,4 @@
-<div lang="{{contentLang}}" dir="{{contentDir}}">
+<div lang="{{contentLang}}" dir="{{contentDir}}"
class="wikitext-editor-container">
<textarea class="wikitext-editor" id="wikitext-editor" cols="40"
rows="10" placeholder="{{placeholder}}"></textarea>
<div class="preview content"></div>
{{#loginUrl}}
--
To view, visit https://gerrit.wikimedia.org/r/203959
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I831f5e8fee315c9375cc7153ea3fd254137daf49
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: wmf/1.26wmf1
Gerrit-Owner: Kaldari <[email protected]>
Gerrit-Reviewer: Phuedx <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits