Skip to content

Commit

Permalink
Improve KEEP-only pool responsivenness
Browse files Browse the repository at this point in the history
Fixed overlapping components at ~1300px. Used svg graphic as a
background image instead of svg element, it helps to scale down
the KEEP-only pool graphic.
  • Loading branch information
r-czajkowski committed Feb 8, 2021
1 parent d0f0998 commit c19f44b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
4 changes: 1 addition & 3 deletions solidity/dashboard/src/components/KeepOnlyPool.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,7 @@ const KeepOnlyPool = ({
</MetricsTile>
</section>
</section>
<section className="keep-only-pool__icon">
<Icons.KeepOnlyPool preserveAspectRatio="none" />
</section>
<section className="keep-only-pool__icon" />
</section>
)
}
Expand Down
18 changes: 12 additions & 6 deletions solidity/dashboard/src/css/liquidity-page.less
Original file line number Diff line number Diff line change
Expand Up @@ -159,15 +159,15 @@
}

&__icon {
background: url("../static/svg/keep-only-pool.svg");
background-color: @color-grey-10;
margin-bottom: 1.2rem;

> svg {
height: 100%;
}
background-size: cover;
background-position: center center;
background-repeat:no-repeat;
height: 400px;
}

@media screen and (min-width: 900px) {
@media screen and (min-width: 1000px) {
flex-direction: row;
&__overview {
flex-direction: row;
Expand All @@ -177,6 +177,12 @@
display: block;
}
}

&__icon {
flex-grow: 0.5;
height: auto;
margin-bottom: 1.2rem;
}
}
}

Expand Down

0 comments on commit c19f44b

Please sign in to comment.