This one should have a bit more height -
Specially when dealing with contenthandler JSON.
| 01tonythomas | |
| Apr 2 2017, 8:31 PM |
| F72194417: sandbox_20260219_193035.png | |
| Feb 20 2026, 3:32 AM |
| F71611640: Screenshot 2026-01-26 at 22.55.02.png | |
| Jan 26 2026, 10:57 PM |
| F26609713: Screenshot for T162001.png | |
| Oct 15 2018, 2:22 PM |
| F7152766: pasted_file | |
| Apr 2 2017, 8:31 PM |
This one should have a bit more height -
Specially when dealing with contenthandler JSON.
Changing this would require either increasing the height of all multiline text fields in ApiSandbox, or adding yet another ApiBase::PARAM_* constant and setting it in various places.
Most browsers these days[1] make textareas resizeable by default, which seems like an all-around better solution.
[1]: I can't quickly find figures for that specifically, but according to https://caniuse.com/#feat=css-resize 76.38% support the related CSS [[https://www.w3.org/TR/css-ui-3/#resize|resize property]]. It's possible that some don't apply resize: both to textareas by default, although various pages online say Firefox, Chrome, and Safari all do.
I'm an outreachy applicant interested in contributing to this task, please how can i go about it @01tonythomas ?
@AwahNadege: Hi and welcome! Do you have a more specific question? Please see https://www.mediawiki.org/wiki/How_to_become_a_MediaWiki_hacker#Feedback,_questions_and_support and read previous comments in this task - thanks! :)
If you are interested in submitting a fix, you should probably follow https://www.mediawiki.org/wiki/Gerrit/Tutorial and produce a patch to mediawki-core I guess. A good first step would be to reproduce the same in your latest development environment.
Change #1214138 had a related patch set uploaded (by Sanjai Siddharthan; author: Sanjai Siddharthan):
[mediawiki/core@master] ApiSandbox: Increase default height of multiline text inputs and allow vertical resize
The LESS change doesn't seem to have made any difference, as I shouldn't be able to shrink the field to be this small
With this patch, the right border seems to be getting cutoff (Ubuntu, Firefox, 4K display, various zoom levels like %100,%115,%125).
Change #1259244 had a related patch set uploaded (by Aaron Schulz; author: Aaron Schulz):
[mediawiki/core@master] api: use larger, resizable, multiline text inputs on the API sandbox
Change #1259244 merged by jenkins-bot:
[mediawiki/core@master] api: use larger, resizable, multiline text inputs on the API sandbox
Change #1214138 abandoned by Bartosz Dziewoński:
[mediawiki/core@master] ApiSandbox: Increase default height of multiline text inputs and allow vertical resize
Reason:
Replaced by https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1259244