Merge pull request #1750 from ONLYOFFICE/bugfix/sso-layout
bugfix/sso-layout
This commit is contained in:
commit
4c75d2f7e4
@ -24,7 +24,8 @@ const StyledCertificatesTable = styled.div`
|
|||||||
}
|
}
|
||||||
|
|
||||||
.row {
|
.row {
|
||||||
width: 350px;
|
max-width: 520px;
|
||||||
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -3,7 +3,7 @@ import { smallTablet } from "@docspace/components/utils/device";
|
|||||||
|
|
||||||
const StyledInputWrapper = styled.div`
|
const StyledInputWrapper = styled.div`
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: ${(props) => props.maxWidth || "350px"};
|
max-width: ${(props) => props.maxWidth || "520px"};
|
||||||
|
|
||||||
@media ${smallTablet} {
|
@media ${smallTablet} {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
@ -19,7 +19,7 @@ const StyledInputWrapper = styled.div`
|
|||||||
.field-label-icon {
|
.field-label-icon {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-bottom: 4px;
|
margin-bottom: 4px;
|
||||||
max-width: 350px;
|
max-width: 520px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.field-label {
|
.field-label {
|
||||||
|
@ -90,20 +90,6 @@ const StyledSsoPage = styled.div`
|
|||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.upload-button {
|
|
||||||
height: 32px;
|
|
||||||
width: 45px;
|
|
||||||
${(props) =>
|
|
||||||
props.theme.interfaceDirection === "rtl"
|
|
||||||
? css`
|
|
||||||
margin-right: 9px;
|
|
||||||
`
|
|
||||||
: css`
|
|
||||||
margin-left: 9px;
|
|
||||||
`}
|
|
||||||
overflow: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
.save-button {
|
.save-button {
|
||||||
${(props) =>
|
${(props) =>
|
||||||
props.theme.interfaceDirection === "rtl"
|
props.theme.interfaceDirection === "rtl"
|
||||||
|
@ -15,17 +15,14 @@ const StyledWrapper = styled.div`
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 4px;
|
gap: 4px;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
max-width: 350px;
|
max-width: 520px;
|
||||||
|
|
||||||
.input {
|
.input {
|
||||||
width: 350px;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media ${smallTablet} {
|
@media ${smallTablet} {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
.input {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.label > div {
|
.label > div {
|
||||||
|
@ -79,13 +79,8 @@ StyledUploadIcon.defaultProps = { theme: Base };
|
|||||||
|
|
||||||
const UploadXML = (props) => {
|
const UploadXML = (props) => {
|
||||||
const { t } = useTranslation(["SingleSignOn", "Common"]);
|
const { t } = useTranslation(["SingleSignOn", "Common"]);
|
||||||
const {
|
const { enableSso, uploadXmlUrl, isLoadingXml, uploadByUrl, uploadXml } =
|
||||||
enableSso,
|
props;
|
||||||
uploadXmlUrl,
|
|
||||||
isLoadingXml,
|
|
||||||
uploadByUrl,
|
|
||||||
uploadXml,
|
|
||||||
} = props;
|
|
||||||
|
|
||||||
const isDisabledProp = {
|
const isDisabledProp = {
|
||||||
disabled: !enableSso || uploadXmlUrl.trim().length === 0 || isLoadingXml,
|
disabled: !enableSso || uploadXmlUrl.trim().length === 0 || isLoadingXml,
|
||||||
@ -143,13 +138,8 @@ const UploadXML = (props) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export default inject(({ ssoStore }) => {
|
export default inject(({ ssoStore }) => {
|
||||||
const {
|
const { enableSso, uploadXmlUrl, isLoadingXml, uploadByUrl, uploadXml } =
|
||||||
enableSso,
|
ssoStore;
|
||||||
uploadXmlUrl,
|
|
||||||
isLoadingXml,
|
|
||||||
uploadByUrl,
|
|
||||||
uploadXml,
|
|
||||||
} = ssoStore;
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
enableSso,
|
enableSso,
|
||||||
|
Loading…
Reference in New Issue
Block a user