summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2022-10-13 01:38:47 +0200
committerMartin Fischer <martin@push-f.com>2022-10-13 01:38:47 +0200
commit893f22b3ff795de9d8202288bf2960995cc41f47 (patch)
tree3ff08c8e2be9e65ea9ef52f8b22b3a04edbdd969
parent86d3f8812a72527fc357976fd441a4082abe66af (diff)
fix: set textarea max-width for MobileFrontend
-rw-r--r--Vote.php1
-rw-r--r--resources/style.css4
2 files changed, 5 insertions, 0 deletions
diff --git a/Vote.php b/Vote.php
index 0429a91..ffedcba 100644
--- a/Vote.php
+++ b/Vote.php
@@ -208,6 +208,7 @@ class VoteHooks {
'rows' => 3,
'label' => wfMessage('vote-comment')->inLanguage($parser->getTargetLanguage()),
'disabled' => $previewMode,
+ 'cssclass' => 'vote-comment-textarea',
],
'page' => [
'type' => 'hidden',
diff --git a/resources/style.css b/resources/style.css
index a9ded0f..b602633 100644
--- a/resources/style.css
+++ b/resources/style.css
@@ -1,3 +1,7 @@
.uncounted-vote {
color: #777;
}
+
+.vote-comment-textarea {
+ max-width: 100%; /* fix for MobileFrontend */
+}