Web: Files: Settings: fix margin on mobile devices
This commit is contained in:
parent
88df1f34d1
commit
791dfb055c
@ -1,5 +1,6 @@
|
||||
import styled from "styled-components";
|
||||
import styled, { css } from "styled-components";
|
||||
import { tablet } from "@docspace/components/utils/device";
|
||||
import { isMobile } from "react-device-detect";
|
||||
|
||||
const StyledSettings = styled.div`
|
||||
margin-top: ${(props) => (props.showTitle ? 24 : 34)}px;
|
||||
@ -8,6 +9,11 @@ const StyledSettings = styled.div`
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
${isMobile &&
|
||||
css`
|
||||
margin-top: 8px;
|
||||
`}
|
||||
|
||||
width: 100%;
|
||||
|
||||
display: grid;
|
||||
|
@ -12,6 +12,7 @@ import Submenu from "@docspace/components/submenu";
|
||||
import CommonSettings from "./CommonSettings";
|
||||
import AdminSettings from "./AdminSettings";
|
||||
import { tablet } from "@docspace/components/utils/device";
|
||||
import { isMobile } from "react-device-detect";
|
||||
|
||||
const StyledContainer = styled.div`
|
||||
margin-top: -22px;
|
||||
@ -19,6 +20,11 @@ const StyledContainer = styled.div`
|
||||
@media ${tablet} {
|
||||
margin-top: 0px;
|
||||
}
|
||||
|
||||
${isMobile &&
|
||||
css`
|
||||
margin-top: 0px;
|
||||
`}
|
||||
`;
|
||||
|
||||
const SectionBodyContent = ({ isAdmin, isErrorSettings, history }) => {
|
||||
|
Loading…
Reference in New Issue
Block a user