Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

fix: missing margin on market news section on mobile #2159

Merged
3 commits merged into from Oct 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/pages/academy/blog/_first-article.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const FirstArticle = ({ item }) => {
return (
<RedirectLink to={`/academy/blog/posts/${item.slug}/`}>
<StyledFlex jc="flex-start" mt="96px">
<StandardImgWrapper width="592px" br="6px">
<StandardImgWrapper width="592px" br="6px 0 0 6px" tabletL_br="6px 6px 0 0">
<QueryImage
data={getImage(item.main_image.imageFile)}
alt={item.main_image.description || ''}
Expand Down
7 changes: 4 additions & 3 deletions src/pages/academy/blog/posts/_style.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const Background = styled.div`
`
export const HeroContainer = styled(Container)`
height: auto;
min-height: 566px;
min-height: 525px;
padding: 76px 0 40px;
align-items: flex-start;

Expand Down Expand Up @@ -371,15 +371,16 @@ export const RightSocialComponents = styled.div`
width: auto;
`
export const DesktopWrapper = styled(Flex)`
@media ${device.tabletS} {
@media ${device.laptop} {
display: none;
}
`
export const MobileWrapper = styled.div`
display: none;

@media ${device.tabletS} {
@media ${device.laptop} {
display: flex;
justify-content: center;
width: 100%;
}
`
Expand Down
2 changes: 1 addition & 1 deletion src/pages/academy/components/_markets-news.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const MarketsNewsWrapper = styled.div`
@media ${device.tablet} {
grid-template-columns: auto;
margin: 0 auto;
max-height: auto;
max-height: unset;
padding: 0;
}
`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const SubscribeBannerWrapper = styled(Flex)`
background: var(--color-grey-42);
border-radius: 8px;
margin: 40px 0;
@media ${device.tabletL} {
@media ${device.laptop} {
max-width: 328px;
padding: 32px 18.5px;
}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/article.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,11 @@ const ArticlesTemplate = (props) => {
</SocialComponentsWrapper>

{side_banner_data_details && (
<Show.Mobile>
<MobileWrapper>
<Flex mt="24px">
<Banner detailsObj={side_banner_data_details} />
</Flex>
</Show.Mobile>
</MobileWrapper>
)}
<MobileWrapper>
<ArticleEmailBanner />
Expand Down