Page MenuHomePhabricator

"Legend" retains some space if "Group results by change" is enabled
Closed, ResolvedPublic

Description

The issue is present only when "Group results by change" is enabled and highlighting makes it even more apparent.

  1. Enable "Group results by change" on RC page
  2. Depending on length of entries in results, "Legend" box pushes the result entries and retains extra white space around.
    • Highlighting makes the impact more visible.
Screen Shot 2017-08-31 at 12.23.27 PM.png (493×1 px, 172 KB)
Screen Shot 2017-08-31 at 12.22.57 PM.png (535×1 px, 191 KB)
Screen Shot 2017-08-31 at 12.22.36 PM.png (582×1 px, 191 KB)

Gif illustrations

Without grouping, the entries are occupying 100% width, but nicely wrapped around "Legend" box. This is especially visible with highlighting enabled. You can see how "Legend" box is behaving when grouping is enabled/disabled:

Without groupingWith Grouping
RC-Legend-without-grouping.gif (708×964 px, 94 KB)
RC-Legend-with-grouping.gif (708×964 px, 302 KB)

Without highlighting

The problem exists without highlighting as well. Here is the example of how "Legend" box pushes entire RC entry on the left, without wrapping around the box, even though there is more than enough room for wrapping.

Without groupingWith Grouping
RC-Legend-without-grouping.PNG (324×783 px, 43 KB)
RC-Legend-with-grouping.PNG (381×775 px, 40 KB)

Event Timeline

Petar.petkovic renamed this task from 'Legend' retains some space if 'Group results by change' with highlight options is enabled to "Legend" retains some space if "Group results by change" is enabled.Nov 28 2017, 1:25 PM
Petar.petkovic updated the task description. (Show Details)
Petar.petkovic updated the task description. (Show Details)

Change 394069 had a related patch set uploaded (by Petar.petkovic; owner: Petar.petkovic):
[mediawiki/core@master] Absolutely position "legend" on grouped results

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

Change 394069 merged by jenkins-bot:
[mediawiki/core@master] Absolutely position "legend" on grouped results

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

Really an edge-case, but FYI, when there's only 1 or 2 results, the legend is bigger than the results area and overlaps the footer images. Only happens when results are grouped by page.

Screen Shot 2017-12-06 at 12.50.13.png (572×1 px, 138 KB)

Really an edge-case, but FYI, when there's only 1 or 2 results, the legend is bigger than the results area and overlaps the footer images. Only happens when results are grouped by page.

Screen Shot 2017-12-06 at 12.50.13.png (572×1 px, 138 KB)

I was aware of that one. Thanks for sharing with others, so we get opinions whether this is acceptable trade-off.

Checked in betalabs and testwiki(wmf.11) - the legend expanding/collapsing works smoothly - not occupying extra space and not overlapping the page footer when there are not many results on the page.