Set flex-direction for thumbnails to avoid overflow issues

`flex-direction:column` causes the flex-child `a` to grow it's height
and sets its width to 'auto' which, like a block-element, makes it
occupy the "available" space.

Bug: T200518
Change-Id: I5af9d082e77dd4ca2d92460824977f085011e622
This commit is contained in:
jdlrobson 2018-08-02 17:58:37 +08:00 committed by Jdlrobson
parent e2442f16c8
commit 22cc13bad2
1 changed files with 2 additions and 0 deletions

View File

@ -184,6 +184,8 @@ FIXME: Review all of these hacks to see if they still apply.
justify-content: center;
flex-wrap: wrap;
align-content: flex-start;
// avoid image child overflowing the container (T200518)
flex-direction: column;
> .thumbcaption {
.flex( 1, 0, 100% );