Phuedx has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/203095

Change subject: WIP: Don't let the Wikitext editor over-expand
......................................................................

WIP: Don't let the Wikitext editor over-expand

Bug: T95465
Change-Id: I831f5e8fee315c9375cc7153ea3fd254137daf49
---
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/95/203095/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/203095
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: master
Gerrit-Owner: Phuedx <g...@samsmith.io>

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

Reply via email to