Page MenuHomePhabricator

Use grid to specify sidebar width
Closed, ResolvedPublic

Description

Background

Currently the elements that sit inside the sidebar (main menu and ToC) are have styles that apply widths, which also depend on the viewport (located in Sidebar.less). Rather than apply these styles independently, we should apply the width to the grid area that contains the sidebar. This simplifies the CSS and allows the TOC to take up the full space regardless if it has a negative margin

Screen Shot 2022-10-04 at 1.58.56 PM.png (1×1 px, 397 KB)

AC

  • main menu and TOC no longer have width styles
  • The 'sidebar' grid template area has the correct width styles

Event Timeline

Change 840194 had a related patch set uploaded (by Jdrewniak; author: Jdrewniak):

[mediawiki/skins/Vector@master] Split MenuPortal.less into legacy and modern Vector

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

Change 840194 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Split MenuPortal.less into legacy and modern Vector

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

Change 877239 had a related patch set uploaded (by Bernard Wang; author: Bernard Wang):

[mediawiki/skins/Vector@master] Fix alignment/spacing of grid column items

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

Change 877239 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Fix alignment/spacing of grid column items

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

Jdlrobson subscribed.

@bwang will this be fixed by the page tools roll out?

Jdlrobson triaged this task as Medium priority.Jun 12 2023, 6:04 PM

@Jdlrobson This is fixed in Zebra! Should I just close this then with the assumption we are going to roll out zebra?

Edit: nevermind i just resolved it