Make Playlist items span full width
ClosedPublic

Authored by ngraham on Jun 4 2019, 5:08 PM.

Details

Summary

Currently playlist items do not span the full width; there is a bunch of
complicated logic to determine the margins and playlist's width. This
makes the display look unbalanced and causes a subtle visual bug
(see BUG: below).

This patch resolves both issues by making playlist items visually stick to
both edges of the playlist, just like the category selector list items do.

This patch also does a bit of necessary code cleanup for the playlist states.
I tested this out quite a bit but to make sure there were no regressions but
it's possible that I missed something so more testing may be needed.

BUG: 408210

Test Plan

Before:

After:

Diff Detail

Repository
R255 Elisa
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
ngraham requested review of this revision.Jun 4 2019, 5:08 PM
ngraham created this revision.
ngraham edited the summary of this revision. (Show Details)Jun 4 2019, 5:12 PM
ngraham edited the test plan for this revision. (Show Details)
mgallien added a subscriber: januz.Jun 5 2019, 3:49 PM

The track title left borders are no longer aligned with the album title left border. That makes it harder to read.
In case it is needed, we could also get more feedback from people in VDG and @januz who did the design work for the current playlist layout.

Good point, I'll fix that.

ngraham updated this revision to Diff 59210.Jun 5 2019, 5:09 PM

Don't regress vertical alignment of track titles with artist+album name

ngraham edited the test plan for this revision. (Show Details)Jun 5 2019, 5:10 PM
mgallien accepted this revision.Jun 6 2019, 8:54 PM

Looks good to me. Thanks

This revision is now accepted and ready to land.Jun 6 2019, 8:54 PM

You're welcome!

This revision was automatically updated to reflect the committed changes.