Last modified: 2014-08-29 01:58:16 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T67444, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 65444 - Vector: Use a consistent indentation for all sidebar links
Vector: Use a consistent indentation for all sidebar links
Status: UNCONFIRMED
Product: MediaWiki skins
Classification: Unclassified
Vector (Other open bugs)
unspecified
All All
: Low enhancement
: ---
Assigned To: Nobody - You can work on this!
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-17 22:10 UTC by Helder
Modified: 2014-08-29 01:58 UTC (History)
10 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
en.wiki sidebar without JavaScript (329.72 KB, image/png)
2014-05-19 11:21 UTC, Nemo
Details
What it used to be (93.19 KB, image/png)
2014-05-26 15:31 UTC, Derk-Jan Hartman
Details

Description Helder 2014-05-17 22:10:41 UTC
On
https://en.wikipedia.org/wiki/Main_Page?uselang=en&useskin=vector
the links from sections "Interaction", "Tools", "Print/Export" and "Languages" are not aligned with the Links from the top ("Navigation") section.

Maybe this was caused by the removal of the collapsible feature?
Comment 1 Helder 2014-05-18 14:04:54 UTC
The current formatting also makes many items to wrap to a new line.
Comment 2 Helder 2014-05-18 14:16:20 UTC
(In reply to Helder from comment #1)
> The current formatting also makes many items to wrap to a new line.
Ignore this comment, I was testing something on Firefox and set the minimum font size to 13px. This was the cause of the wrapping...
Comment 3 Andre Klapper 2014-05-19 09:24:15 UTC
Why is this a code-update-regression, and what is the actual problem?
I guess they are not meant to be aligned, because these section were collapsible a while ago, but I don't see any change in indentation compared to the last weeks?
Comment 4 Helder 2014-05-19 11:04:47 UTC
Compare the bugzilla sidebar to the sidebar on the wikis. On bugzilla, there is no indentation for the uncollapsed sections. This is how it should look like on the wikis as well.

Also, see the image on
https://www.mediawiki.org/wiki/Wikimedia_Foundation_Design/Whitespace#Alignment

Before the code update, there was a image in the left of the headers, and in that case the margin(padding?) makes sense, to make the items aligned with the header. Now, there is no icon, so there should be no white space either.
Comment 5 Helder 2014-05-19 11:15:08 UTC
Change-Id: I220057c799bef7e8c4d964f47d56f61ec120d8c2
Comment 6 Nemo 2014-05-19 11:21:55 UTC
Created attachment 15437 [details]
en.wiki sidebar without JavaScript

The screenshots on that page are useless, because they show everything collapsed (even stuff which normally isn't). The misalignment is caused by the JavaScript which removes the header "navigation" in the first sidebar box, see for instance in 1.18: http://wiki.wikimedia.it/wiki/Pagina_principale?useskin=vector

Misaligning the sidebar was probably the intended effect, so this is not really a bug; no idea what enhancements would be accepted.
Comment 7 Tomasz W. Kozlowski 2014-05-19 11:48:20 UTC
/skins/vector/components/navigation.less assign different margin values to div#mw-panel div.portal div.body and div#mw-panel div.portal.first div.body

The former uses the default @menu-main-body-margin (0 0 0 1.25em; } while the latter uses { margin-left: .5em } hence the .75em difference in indentation.

Caused by https://gerrit.wikimedia.org/r/#/c/131402/
Comment 8 MZMcBride 2014-05-20 00:09:30 UTC
I tried to improve the bug summary.
Comment 9 Gerrit Notification Bot 2014-05-20 08:35:26 UTC
Change 134311 had a related patch set uploaded by Odder:
Fix indentation in Vector sidebar links

https://gerrit.wikimedia.org/r/134311
Comment 10 Krinkle 2014-05-26 14:37:39 UTC
(In reply to Helder from comment #2)
> (In reply to Helder from comment #1)
> > The current formatting also makes many items to wrap to a new line.
> Ignore this comment, I was testing something on Firefox and set the minimum
> font size to 13px. This was the cause of the wrapping...

Indeed. They were already aligned like this. The position is exactly the same as before we removed the collapsibleNav module.
Comment 11 Krinkle 2014-05-26 14:41:20 UTC
(In reply to Helder from comment #4)
> Compare the bugzilla sidebar to the sidebar on the wikis. On bugzilla, there
> is no indentation for the uncollapsed sections. This is how it should look
> like on the wikis as well.
> 
> Also, see the image on
> https://www.mediawiki.org/wiki/Wikimedia_Foundation_Design/
> Whitespace#Alignment
> 
> Before the code update, there was a image in the left of the headers, and in
> that case the margin(padding?) makes sense, to make the items aligned with
> the header. Now, there is no icon, so there should be no white space either.

Note that the Bugzilla sidebar has another important difference. It has the separator lines between the header and the items. Not between the sections.


Bugzilla (and how Vector was in 2009):

 Header
 --------
 Item
 Item

 Header
 --------
 Item
 Item

MediaWiki Vector (2010-2013)

 \/ Header
    Item
    Item

  --------

 \/ Header
    Item
    Item

MediaWiki Vector (now)

 Header
    Item
    Item

  --------

 Header
    Item
    Item
Comment 12 Helder 2014-05-26 15:09:58 UTC
(In reply to Krinkle from comment #11)

To be more explicit:
MediaWiki Vector (now)

 Item
 Item

  --------

 Header
    Item
    Item

  --------

 Header
    Item
    Item
Comment 13 Krinkle 2014-05-26 15:16:22 UTC
(In reply to Helder from comment #12)
> (In reply to Krinkle from comment #11)
> 
> To be more explicit

Indeed, the first section has no heading and is not indented. However, that also has been the case since 2010.

I think we need design input (which I can provide, but I'd like a second pair of eyes on this) because this is not a technical matter.

My argument is:

* Aligning header and items is fine (e.g. no extra indentation), but in that case we should move the separator line back to between the header and the items (like it was in 2009, and how it still is on Bugzilla). Otherwise it gets too crammy and too close to each other.

* The current proposed patch set (I0c880c1a31dae6c patch set 2) would in my opinion be a regression as it doesn't align the items, nor does it keep separation. What it does is remove the indentation but keeps the margins as they are which means they now neither have spacial separation, nor a line separation, and don't have alignment either. They almost have any of them, but exactlt have nothing. That patch changes it to:

 ----
 Heading
  Item
  Item

The space here in front of "Item" is exaggerated, it basically makes it almost match but not exactly (see http://i.imgur.com/AmmLMjc.png), and removes a lot of the visual separation, breathing room and decluttering.
Comment 14 Nemo 2014-05-26 15:31:04 UTC
(In reply to Krinkle from comment #13)
> * Aligning header and items is fine (e.g. no extra indentation), but in that
> case we should move the separator line back to between the header and the
> items (like it was in 2009, and how it still is on Bugzilla). Otherwise it
> gets too crammy and too close to each other.

Makes sense.

> The space here in front of "Item" is exaggerated, it basically makes it
> almost match but not exactly (see http://i.imgur.com/AmmLMjc.png), and
> removes a lot of the visual separation, breathing room and decluttering.

Agreed, that screenshot is no good.
Comment 15 Derk-Jan Hartman 2014-05-26 15:31:11 UTC
Created attachment 15476 [details]
What it used to be

Since I have access to an instance with a somewhat older version of vector, a screeshot of how it once was.
Comment 16 Krinkle 2014-05-26 15:34:01 UTC
That can be achieved by undoing parts of https://gerrit.wikimedia.org/r/#/c/131402/. There will likely still be parts of that change that should remain, and some parts that were changed/removed at other times that may need restoring.
Comment 17 Gerrit Notification Bot 2014-05-26 17:17:56 UTC
Change 134311 abandoned by Odder:
Fix indentation in Vector sidebar links

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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links