Common: Navigation: fix

This commit is contained in:
Viktor Fomin 2023-10-10 13:25:16 +03:00
parent 5050eb006c
commit f4a1c64a6b
2 changed files with 6 additions and 1 deletions

View File

@ -251,7 +251,7 @@ const Navigation = ({
isTrashFolder={isTrashFolder}
/>
</StyledContainer>
{isTrashFolder && !isEmptyPage && (
{isDesktop && isTrashFolder && !isEmptyPage && (
<TrashWarning
title={titles.trashWarning}
isTabletView={isTabletView}

View File

@ -1,5 +1,6 @@
import React from "react";
import styled, { css } from "styled-components";
import { tablet } from "@docspace/components/utils/device";
const StyledTrashWarning = styled.div`
box-sizing: border-box;
@ -19,6 +20,10 @@ const StyledTrashWarning = styled.div`
color: ${({ theme }) => theme.section.header.trashErasureLabelText};
background: ${({ theme }) =>
theme.section.header.trashErasureLabelBackground};
@media ${tablet} {
margin-bottom: 16px;
}
`;
const TrashWarning = ({ title }) => {