Page MenuHomePhabricator

Fix margins/padding (VE template dialog)
Closed, ResolvedPublic3 Estimated Story Points

Assigned To
Authored By
ECohen_WMDE
May 31 2022, 7:46 AM
Referenced Files
F35256002: image.png
Jun 20 2022, 9:50 AM
F35255871: Margin Regression.png
Jun 20 2022, 9:14 AM
Restricted File
Jun 20 2022, 8:12 AM
Restricted File
Jun 17 2022, 3:41 PM
F35243772: Peek 2022-06-15 15-46.gif
Jun 15 2022, 1:57 PM
F35243788: Screenshot from 2022-06-15 15-52-52.png
Jun 15 2022, 1:57 PM
F35243776: Screenshot from 2022-06-15 15-39-02.png
Jun 15 2022, 1:57 PM
F35243774: Screenshot from 2022-06-15 15-38-49.png
Jun 15 2022, 1:57 PM

Description

Remove margin: https://gerrit.wikimedia.org/r/c/805401

  • (mobile only) above the template name/description in main editing area (should match the side margins) and above the template search

Add margin: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/VisualEditor/+/805412

  • (mobile + desktop) bottom of list of params in sidebar (the last item in list should match left side margin)
  • (mobile + desktop) top of param list when no search bar should match left side margin
  • Update: Do not add margins when when the last or the first element is a non-indented entry like wikitext or template heading.
  • Update: Add margins after each param section for multi-part templates.
ExistingFixed
Remove margin
mobile only
Screen Shot 2022-05-31 at 09.42.24.png (359×404 px, 40 KB)
Screen Shot 2022-05-31 at 14.07.28.png (586×746 px, 81 KB)
Screen Shot 2022-05-31 at 09.42.48.png (309×380 px, 42 KB)
Add margin
mobile + desktop
Screen Shot 2022-05-31 at 09.59.01.png (605×387 px, 47 KB)
Screen Shot 2022-05-31 at 10.00.02.png (661×379 px, 41 KB)
mobile + desktop
Screen Shot 2022-05-31 at 14.21.31.png (1×810 px, 71 KB)
Screen Shot 2022-05-31 at 14.29.18.png (1×760 px, 63 KB)

Outcome

Removing margins in the content pane in mobile:

Screenshot from 2022-06-14 16-01-02.png (916×1 px, 127 KB)

Adding margins to the sidebar:

Single with checkboxes only:Single with search bar:Multi-part template:
desktop
Screenshot from 2022-06-15 15-38-49.png (608×1 px, 46 KB)
Screenshot from 2022-06-15 15-39-02.png (628×1 px, 74 KB)
Peek 2022-06-15 15-46.gif (869×1 px, 597 KB)
mobile
Screenshot from 2022-06-15 15-54-57.png (860×803 px, 42 KB)
Screenshot from 2022-06-15 15-52-52.png (859×850 px, 84 KB)
Screenshot from 2022-06-15 15-52-27.png (862×851 px, 92 KB)

Event Timeline

ECohen_WMDE renamed this task from Remove extra margin on mobile (VE dialog) to Fix margins on mobile (VE dialog).May 31 2022, 8:02 AM
ECohen_WMDE updated the task description. (Show Details)
ECohen_WMDE renamed this task from Fix margins on mobile (VE dialog) to Fix margins/padding (VE dialog).May 31 2022, 12:30 PM
ECohen_WMDE updated the task description. (Show Details)
Lena_WMDE renamed this task from Fix margins/padding (VE dialog) to Fix margins/padding (VE template dialog).Jun 1 2022, 1:15 PM
thiemowmde set the point value for this task to 3.Jun 9 2022, 12:51 PM

Change 805401 had a related patch set uploaded (by Svantje Lilienthal; author: Svantje Lilienthal):

[mediawiki/extensions/VisualEditor@master] Adjust margin in mobile template dialog

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

Removing one requirement because it's confirmed that this is the OOUI default

Change 805412 had a related patch set uploaded (by Svantje Lilienthal; author: Svantje Lilienthal):

[mediawiki/extensions/VisualEditor@master] Adjust padding in template dialog sidebar

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

Change 805401 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Adjust margin in mobile template dialog

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

@lilients_WMDE spacing between the templates/wikitext headers for multi-part look good to me. The additional spacing at the top of the checkmarks looks good. I assume it's the same at the button of a long list now too? When I look on beta, it's not yet updated there and can't check.

What is strange is that on beta the space at the top of the content-side template header is gone (correctly) but in your screenshots it is still there?
Here is a screenshot from beta with the correct spacing, can you confirm this is still the case?
{F35249267}

Change 805412 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Adjust margins in template dialog sidebar

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

Was checking on beta and the changes seem to be there except the spacing above the content-side template header is still there (as mentioned above) and I noticed an additional spacing issue:

  • In multi-part template content, one of the templates has no params and the description (added in T300710) is now overlapping with the name. Padding needs to be added back. {F35255693}
WMDE-Fisch subscribed.

Found a regression we should fix. Transclusion with a template without parameters and template with parameters:

Margin Regression.png (596×240 px, 22 KB)

Another regression, possibly the same bug as above:

image.png (229×294 px, 14 KB)

Change 806869 had a related patch set uploaded (by Svantje Lilienthal; author: Svantje Lilienthal):

[mediawiki/extensions/VisualEditor@master] Fixing css in case the last element has text or checkboxes

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

Change 806869 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Fixing css in case the last element has text or checkboxes

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

Change 806902 had a related patch set uploaded (by Svantje Lilienthal; author: Svantje Lilienthal):

[mediawiki/extensions/VisualEditor@master] Different margins for different last elements in the templates dialog sidebar

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

Change 806902 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Different margins for different last elements in the templates dialog sidebar

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

thiemowmde claimed this task.