diff --git a/apps/blog/components/Article/AllArticle/index.tsx b/apps/blog/components/Article/AllArticle/index.tsx index 9e36fa44a0f54..0ea44f7e80863 100644 --- a/apps/blog/components/Article/AllArticle/index.tsx +++ b/apps/blog/components/Article/AllArticle/index.tsx @@ -10,6 +10,7 @@ import useAllArticle from 'hooks/useAllArticle' import useLanguage from 'hooks/useLanguage' import { useRouter } from 'next/router' import { useEffect, useRef, useState } from 'react' +import { isMobile } from 'react-device-detect' import { styled } from 'styled-components' import { LS_KEY, getLanguageCodeFromLS } from 'utils/getLanguageCodeFromLS' @@ -28,15 +29,11 @@ const StyledArticleContainer = styled(Box)` ` const StyledTagContainer = styled(Box)` - display: none; + display: flex; + flex-direction: column; width: 194px; min-width: 194px; margin-right: 25px; - - ${({ theme }) => theme.mediaQueries.xxl} { - display: flex; - flex-direction: column; - } ` const StyledMobileTagContainer = styled(Box)` @@ -44,10 +41,6 @@ const StyledMobileTagContainer = styled(Box)` flex-direction: column; padding: 0 16px; margin-bottom: 24px; - - ${({ theme }) => theme.mediaQueries.xxl} { - display: none; - } ` const StyledCard = styled(Flex)` @@ -145,14 +138,16 @@ const AllArticle = () => { {t('All articles')} - - - + {!isMobile && ( + + + + )} { - - - {t('Filter by')} - - - - - + {isMobile && ( + + + {t('Filter by')} + + + + + + )} {!isFetching && articles.length === 0 ? ( {t('No results found.')}