Page MenuHomePhabricator

CodexHTMLForm should feature a max-width for Codex components
Closed, ResolvedPublic1 Estimated Story Points

Description

Background

Unlike OOUIHTMLForm we don't have max-width on our new Codex components, which is a weird user-facing presentation.
We should add max-width to components, or even the whole codex-htmlform selector.

In Codex we currently have put out a recommendation of “maximum width of size-3200 (equivalent to 512px in the default Codex theme)”

Open question

For the whole form, should we go for size-3200 as well as max-width, or should we consider the widest size-5600 instead?

@DTorsani-WMF came up with a comparison in T362270 and we've decided to go with a new size-4000.

Acceptance criteria

  • Set max-width on either CodexHTMLForm in special.less or on Special:Block specific stylesheet

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

This captures the problems with both size tokens quite well:

image.png (1×2 px, 322 KB)

I think in a Vector 2022 context, size-3200 is too small. What you think @DTorsani-WMF?

Change #1017172 had a related patch set uploaded (by VolkerE; author: VolkerE):

[mediawiki/core@master] CodexHTMLForm: Use maximum width for CodexHTMLForm

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

@Volker_E I would agree that it feels a bit small, but the next one up, size-5600, feels too big, and I think the smaller one works better for character length in one line. Maybe it is time for a new sizing token?

I agree with your statement @DTorsani-WMF. Would you make a proposal (with my help in testing on Special:Block, as already shared we had somewhat arbitray 50em on OOUI) and discuss it in next design sync?

@Volker_E yes I can work on a proposal to present at design sync.

Noting here that this task will address this request per our conversation in design sync 2024/04/10.

Volker_E renamed this task from CodexHTMLForm for Multiblocks should feature a max-width for Codex components to CodexHTMLForm should feature a max-width for Codex components.Thu, Apr 11, 5:18 PM
Volker_E updated the task description. (Show Details)
CCiufo-WMF triaged this task as Medium priority.Mon, Apr 15, 3:22 PM

Change #1017172 merged by LWatson:

[mediawiki/core@master] CodexHTMLForm: Use maximum width for CodexHTMLForm

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

Volker_E claimed this task.
Volker_E removed a project: Patch-For-Review.
Volker_E updated the task description. (Show Details)