Web:Common:Fixed the missing button to open the info panel on tablets with desktop resolution.

This commit is contained in:
Vlada Gazizova 2023-03-28 10:14:30 +03:00
parent e5e17a8525
commit 966be1b9d0
3 changed files with 2 additions and 15 deletions

View File

@ -17,6 +17,7 @@ import {
isMobile as isMobileUtils,
isTablet as isTabletUtils,
isDesktop as isDesktopUtils,
isSmallTablet as isSmallTabletUtils,
} from "@docspace/components/utils/device";
import ToggleInfoPanelButton from "./sub-components/toggle-infopanel-btn";
import TrashWarning from "./sub-components/trash-warning";
@ -59,8 +60,7 @@ const Navigation = ({
const containerRef = React.useRef(null);
const isDesktop =
(!isMobile && !isTabletUtils() && !isMobileUtils()) ||
(isDesktopUtils() && !isMobile);
(!isTabletUtils() && !isSmallTabletUtils()) || isDesktopUtils();
const infoPanelIsVisible = React.useMemo(
() => isDesktop && (!isEmptyPage || (isEmptyPage && isRoom)),

View File

@ -67,13 +67,6 @@ const StyledContainer = styled.div`
grid-template-columns: ${(props) =>
props.isRootFolder ? "1fr auto" : "29px 1fr auto"};
}
${isMobile &&
css`
width: 100%;
grid-template-columns: ${(props) =>
props.isRootFolder ? "1fr auto" : "49px 1fr auto"};
`}
`;
export default StyledContainer;

View File

@ -21,12 +21,6 @@ const StyledInfoPanelToggleWrapper = styled.div`
margin-left: ${(props) => (props.isRootFolder ? "auto" : "0")};
}
${isMobile &&
css`
display: none;
margin-left: ${(props) => (props.isRootFolder ? "auto" : "0")};
`}
.info-panel-toggle-bg {
height: 32px;
width: 32px;