1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Fix popup view expanding when expanding transaction (#8271)

The popup view would expand beyond the width of the viewport when
expanding a transaction. This bug was introduced in #8139 when I
removed the `min-width: 0` property from the `home__container` class;
this property was giving the parent permission to shrink that div below
the size of its content.

Instead of restoring that property, the parent component is no longer
using `display: flex`. Flexbox was never useful here, as this is just a
wrapper div around a wrapper div, both with identical sizes. The
default display type of `block` produces the desired behaviour with
less rules.
This commit is contained in:
Mark Stacey 2020-04-01 13:18:36 -03:00 committed by GitHub
parent 3f2bf36f6a
commit dbc7446b9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,9 +21,6 @@ $wallet-view-bg: $alabaster;
.main-container { .main-container {
z-index: $main-container-z-index; z-index: $main-container-z-index;
font-family: Roboto; font-family: Roboto;
display: flex;
flex-wrap: wrap;
align-items: stretch;
} }
.main-container::-webkit-scrollbar { .main-container::-webkit-scrollbar {