Client: Profile: fix style

This commit is contained in:
Viktor Fomin 2023-09-27 01:36:29 +03:00
parent f808b788c9
commit 8904928fb1
3 changed files with 15 additions and 36 deletions

View File

@ -4,28 +4,6 @@ import { isMobile } from "react-device-detect";
const StyledWrapper = styled.div` const StyledWrapper = styled.div`
max-width: 660px; max-width: 660px;
margin-top: ${(props) =>
props.hideAdminSettings ? 22 : props.showTitle ? 24 : 34}px;
${(props) =>
props.hideAdminSettings &&
css`
padding-top: 2px;
`}
@media ${tablet} {
margin-top: ${(props) => (props.hideAdminSettings ? 0 : 8)}px;
${(props) =>
props.hideAdminSettings &&
css`
padding-top: 8px;
`}
}
${isMobile &&
css`
margin-top: 8px;
`}
width: 100%; width: 100%;

View File

@ -1,14 +1,18 @@
import styled, { css } from "styled-components"; import styled, { css } from "styled-components";
import { mobile } from "@docspace/components/utils/device"; import { mobile, tablet } from "@docspace/components/utils/device";
const StyledSectionBodyContent = styled.div` const StyledSectionBodyContent = styled.div`
width: 100%; width: 100%;
max-width: 660px; max-width: 660px;
@media ${tablet} {
max-width: 100%;
}
.notification-container { .notification-container {
display: grid; display: grid;
max-width: 660px;
grid-template-columns: 1fr 124px; grid-template-columns: 1fr 124px;
margin-bottom: 21px; margin-bottom: 12px;
.toggle-btn { .toggle-btn {
${(props) => ${(props) =>
@ -26,21 +30,18 @@ const StyledSectionBodyContent = styled.div`
} }
} }
.badges-container { .badges-container {
margin-bottom: 40px; margin-bottom: 24px;
@media ${mobile} {
margin-bottom: 29px;
}
} }
`; `;
const StyledTextContent = styled.div` const StyledTextContent = styled.div`
margin-bottom: 23px; margin-bottom: 12px;
height: 40px; height: 24px;
border-bottom: ${(props) => props.theme.filesPanels.sharing.borderBottom}; border-bottom: ${(props) => props.theme.filesPanels.sharing.borderBottom};
max-width: 700px;
p { p {
padding-top: 8px; line-height: 16px;
padding-bottom: 8px;
} }
`; `;

View File

@ -81,7 +81,7 @@ const Notifications = ({ setSubscriptions }) => {
{isLoadingContent ? ( {isLoadingContent ? (
<Loaders.Rectangle height={"22px"} width={"57px"} /> <Loaders.Rectangle height={"22px"} width={"57px"} />
) : ( ) : (
<Text fontSize={"16px"} fontWeight={700}> <Text fontSize={"14px"} fontWeight={600}>
{t("Badges")} {t("Badges")}
</Text> </Text>
)} )}
@ -106,7 +106,7 @@ const Notifications = ({ setSubscriptions }) => {
{isLoadingContent ? ( {isLoadingContent ? (
<Loaders.Rectangle height={"22px"} width={"57px"} /> <Loaders.Rectangle height={"22px"} width={"57px"} />
) : ( ) : (
<Text fontSize={"16px"} fontWeight={700}> <Text fontSize={"14px"} fontWeight={600}>
{t("Common:Email")} {t("Common:Email")}
</Text> </Text>
)} )}