Skip to content

Commit 9605492

Browse files
authored
Merge pull request #4696 from vluna/4598-2
Fix stacking button elements in container [Fixes #4598]
2 parents f3557cc + 3853388 commit 9605492

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

src/pages/stablecoins.js

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,15 @@ const InfoIcon = styled(Icon)`
249249
fill: ${(props) => props.theme.colors.text};
250250
`
251251

252-
const ButtonLinkRight = styled(ButtonLink)`
253-
margin-left: 1rem;
252+
const ButtonLinkWrap = styled(ButtonLink)`
253+
white-space: break-spaces;
254+
`
255+
256+
const ButtonLinkContainer = styled.div`
257+
display: flex;
258+
flex-direction: row;
259+
flex-flow: wrap;
260+
gap: 1em;
254261
`
255262

256263
const tooltipContent = (
@@ -739,14 +746,14 @@ const StablecoinsPage = ({ data }) => {
739746
intl
740747
)}
741748
>
742-
<div>
749+
<ButtonLinkContainer>
743750
<ButtonLink to="/dapps/">
744751
<Translation id="page-stablecoins-explore-dapps" />
745752
</ButtonLink>
746-
<ButtonLinkRight isSecondary to="/defi/">
753+
<ButtonLinkWrap isSecondary to="/defi/">
747754
<Translation id="page-stablecoins-more-defi-button" />
748-
</ButtonLinkRight>
749-
</div>
755+
</ButtonLinkWrap>
756+
</ButtonLinkContainer>
750757
</StyledCalloutBanner>
751758
<h2>
752759
<Translation id="page-stablecoins-save-stablecoins" />

0 commit comments

Comments
 (0)