Page MenuHomePhabricator

Special:ApiSandbox text box too small (specially with JSON data)
Closed, ResolvedPublic3 Estimated Story Points

Description

This one should have a bit more height -

pasted_file (86×914 px, 7 KB)

Specially when dealing with contenthandler JSON.

Event Timeline

01tonythomas renamed this task from Special:ApiSandbox text box too small (specially with json data) to Special:ApiSandbox text box too small (specially with JSON data) .Apr 2 2017, 8:31 PM

Is this on master? If so, it's in core ;)

Anomie subscribed.

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.

Screenshot for T162001.png (105×571 px, 5 KB)

[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! :)

I'm an outreachy applicant interested in contributing to this task, please how can i go about it @01tonythomas ?

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

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

Hi @01tonythomas ,
I have submitted a patch a week ago. Can you check it ?

Hi @Reedy
Can you check the PR when ur free ?

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

Screenshot 2026-01-26 at 22.55.02.png (105×996 px, 6 KB)

aaron renamed this task from Special:ApiSandbox text box too small (specially with JSON data) to Special:ApiSandbox text box too small (specially with JSON data).Jan 27 2026, 3:36 PM
aaron updated Other Assignee, added: aaron.

@Reedy Thanks for the update!. i have made required changes

sandbox_20260219_193035.png (968×2 px, 37 KB)

With this patch, the right border seems to be getting cutoff (Ubuntu, Firefox, 4K display, various zoom levels like %100,%115,%125).

aaron triaged this task as Medium priority.Feb 20 2026, 3:34 AM
aaron set the point value for this task to 3.

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

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

Change #1259244 merged by jenkins-bot:

[mediawiki/core@master] api: use larger, resizable, multiline text inputs on the API sandbox

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

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

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

aaron updated Other Assignee, removed: aaron.
aaron added a subscriber: sanjaisid.
HCoplin-WMF subscribed.

Marking as resolved to close MWI-Sprint-30 (2026-03-24 to 2026-04-07)