Page MenuHomePhabricator

Resolve spacing style for mobile html with subreferences
Closed, ResolvedPublic

Description

This task is to choose a design and implement the styling for mobile sub-references in the reference list.

Currently references are spaced in PCS output like so,

Screenshot From 2025-09-06 06-47-19.png (576×430 px, 74 KB)

When subreferences are included, the subref sublist would be shown in a new column according to current flexbox styling which should be reviewed in this task because it looks weird.

Screenshot From 2025-09-06 07-03-20.png (576×430 px, 43 KB)

One quick approximation to subreferences is shown below, but it unfortunately gets rid of the <li> flexbox so needs to be considered carefully. This is implemented by the WIP patch attached to this task.

Screenshot From 2025-09-06 07-23-46.png (525×435 px, 41 KB)

The change versus flexbox style is significant, this is the impact of the WIP patch on a normal reflist:

Screenshot From 2025-09-06 06-42-33.png (576×430 px, 73 KB)

Implementation

Draft patch: https://gerrit.wikimedia.org/r/c/mediawiki/services/mobileapps/+/1185223

We ended up making a smaller change which doesn't affect the flex row layout for normal refs.

Details

Related Changes in Gerrit:

Event Timeline

Change #1185223 had a related patch set uploaded (by Awight; author: Awight):

[mediawiki/services/mobileapps@master] [WIP] Subrefs outide of flexbox

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

Change #1185223 abandoned by Thiemo Kreuz (WMDE):

[mediawiki/services/mobileapps@master] Subrefs begin on a new row

Reason:

Merged as part of I7d90079. 🎉

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