Web: PreparationPortal: Fixed styles.

This commit is contained in:
Tatiana Lopaeva 2023-01-26 14:16:50 +03:00
parent d6f1b18b4c
commit 552c046514
5 changed files with 30 additions and 28 deletions

View File

@ -17,6 +17,23 @@ const StyledPreparationPortal = styled.div`
line-height: 20px;
max-width: 480px;
}
.preparation-portal_body-wrapper {
margin-bottom: 24px;
width: 100%;
max-width: ${(props) => (props.errorMessage ? "560px" : "480px")};
box-sizing: border-box;
align-items: center;
.preparation-portal_error {
text-align: center;
color: ${(props) => props.theme.preparationPortalProgress.errorTextColor};
}
.preparation-portal_text {
text-align: center;
color: ${(props) => props.theme.text.disableColor};
}
}
`;
export { StyledPreparationPortal };

View File

@ -201,24 +201,21 @@ const PreparationPortal = (props) => {
: t("Common:PreparationPortalTitle");
return (
<StyledPreparationPortal>
<StyledPreparationPortal errorMessage={errorMessage}>
<ErrorContainer
headerText={withoutHeader ? "" : headerText}
style={style}
>
<ColorTheme
themeId={ThemeType.Progress}
percent={percent}
errorMessage={errorMessage}
className="preparation-portal_body-wrapper"
>
<div className="preparation-portal_body-wrapper">
{errorMessage ? (
<Text
className="preparation-portal_error"
color="#F21C0E"
>{`${errorMessage}`}</Text>
<Text className="preparation-portal_error">{`${errorMessage}`}</Text>
) : (
<>
<ColorTheme
themeId={ThemeType.Progress}
percent={percent}
errorMessage={errorMessage}
className="preparation-portal_body-wrapper"
>
<div className="preparation-portal_progress">
<div className="preparation-portal_progress-bar">
<div className="preparation-portal_progress-line"></div>
@ -228,9 +225,9 @@ const PreparationPortal = (props) => {
<Text className="preparation-portal_text">
{t("PreparationPortalDescription")}
</Text>
</>
</ColorTheme>
)}
</ColorTheme>
</div>
</ErrorContainer>
</StyledPreparationPortal>
);

View File

@ -2,15 +2,6 @@ import styled from "styled-components";
import { Base } from "@docspace/components/themes";
const StyledBodyPreparationPortal = styled.div`
margin-bottom: 24px;
width: 100%;
max-width: ${(props) => (props.errorMessage ? "560px" : "480px")};
box-sizing: border-box;
align-items: center;
.preparation-portal_error {
text-align: center;
}
.preparation-portal_progress {
display: flex;
margin-bottom: 16px;
@ -43,11 +34,6 @@ const StyledBodyPreparationPortal = styled.div`
left: calc(50% - 9px);
}
}
.preparation-portal_text {
text-align: center;
color: ${(props) => props.theme.text.disableColor};
}
`;
StyledBodyPreparationPortal.defaultProps = { theme: Base };

View File

@ -3097,6 +3097,7 @@ const Base = {
backgroundColor: "#F3F4F4",
colorPercentSmall: "#333333",
colorPercentBig: "#FFFFFF",
errorTextColor: "#F21C0E",
},
codeInput: {

View File

@ -3096,6 +3096,7 @@ const Dark = {
backgroundColor: "#282828",
colorPercentSmall: "#FFFFFF",
colorPercentBig: "#333333",
errorTextColor: "#E06451",
},
codeInput: {