diff --git a/components/core/ApplicationLayout.js b/components/core/ApplicationLayout.js index f42a6915..33020311 100644 --- a/components/core/ApplicationLayout.js +++ b/components/core/ApplicationLayout.js @@ -32,11 +32,6 @@ const STYLES_CONTENT = css` min-width: 10%; min-height: 100vh; position: relative; - - @media (max-width: ${Constants.sizes.mobile}px) { - padding-left: 0px; - padding: 0 0 88px 0; - } `; const STYLES_SIDEBAR_ELEMENTS = css` diff --git a/components/core/EmptyState.js b/components/core/EmptyState.js index 4a9c214f..2190dac7 100644 --- a/components/core/EmptyState.js +++ b/components/core/EmptyState.js @@ -24,6 +24,10 @@ const STYLES_EMPTY_FRAME = (theme) => css` border-left: 2px solid; border-top: 2px solid; border-color: ${theme.semantic.borderGrayLight4}; + + @media (max-width: ${theme.sizes.mobile}px) { + display: none; + } `; export default function EmptyState({ children, css, ...props }) { diff --git a/components/core/FileTypeIcon.js b/components/core/FileTypeIcon.js index 32443f77..1d99da64 100644 --- a/components/core/FileTypeIcon.js +++ b/components/core/FileTypeIcon.js @@ -48,22 +48,18 @@ export function FileTypeIcon({ file, ...props }) { const STYLES_FILE_TYPE_GROUP_WRAPPER = (theme) => css` display: grid; - grid-template-columns: repeat(4, 1fr); + grid-template-columns: repeat(4, 120px); grid-gap: 24px; @media (max-width: ${theme.sizes.mobile}px) { - grid-template-columns: repeat(2, 1fr); - - & > :nth-child(n + 5) { - display: none; - } + grid-template-columns: repeat(4, 1fr); + grid-gap: 15px; } `; const STYLES_FILE_TYPE_PLACEHOLDER = css` ${Styles.CONTAINER_CENTERED}; - height: 120px; - width: 120px; + width: 100%; `; export function FileTypeGroup(props) { diff --git a/components/core/Filter/Content.js b/components/core/Filter/Content.js index 480e40da..8799aaca 100644 --- a/components/core/Filter/Content.js +++ b/components/core/Filter/Content.js @@ -20,14 +20,31 @@ const STYLES_DATAVIEWER_WRAPPER = (theme) => css` } `; +const STYLES_DATAVIEWER_EMPTY = (theme) => css` + @media (max-width: ${theme.sizes.mobile}px) { + padding: calc(${theme.sizes.filterNavbar}px) 0px 0px; + } +`; + const STYLES_EMPTY_STATE_WRAPPER = (theme) => css` // NOTE(amine): 100vh - headers' height - Dataviewer's bottom padding height: calc(100vh - ${theme.sizes.filterNavbar + theme.sizes.header}px - 44px); margin-top: 0px; + @media (max-width: ${theme.sizes.mobile}px) { + height: 100%; + } +`; + +const STYLES_EMPTY_STATE_DEMO = (theme) => css` + margin-top: 36px; + @media (max-width: ${theme.sizes.mobile}px) { + margin-top: 65px; + } `; const STYLES_UPLOAD_BUTTON = (theme) => css` ${Styles.CONTAINER_CENTERED}; + display: inline-flex; background-color: ${theme.semantic.bgGrayLight}; border-radius: 8px; width: 24px; @@ -46,9 +63,11 @@ export function Content({ viewer, onAction, isMobile, page, ...props }) { filterState?.type === "library" && objects.length > 0; + const isObjectsEmpty = objects.length === 0; + return ( -