Merge branch 'feature/virtual-rooms-1.2' of github.com:ONLYOFFICE/AppServer into feature/virtual-rooms-1.2

This commit is contained in:
Nikita Gopienko 2022-04-19 19:15:49 +03:00
commit 19f73a9255
8 changed files with 13 additions and 25 deletions

View File

@ -353,6 +353,7 @@ DropDownContainer.propTypes = {
isDefaultMode: PropTypes.bool, isDefaultMode: PropTypes.bool,
/** Needed to open correctly people and group selector when the section width is small */ /** Needed to open correctly people and group selector when the section width is small */
smallSectionWidth: PropTypes.bool, smallSectionWidth: PropTypes.bool,
/** It is necessary when we explicitly set the direction, disables check position */
fixedDirection: PropTypes.bool, fixedDirection: PropTypes.bool,
}; };

View File

@ -235,6 +235,7 @@ const MainButtonMobile = (props) => {
directionY="top" directionY="top"
directionX="right" directionX="right"
isMobile={isMobile || isTablet} isMobile={isMobile || isTablet}
fixedDirection={true}
heightProp={height} heightProp={height}
sectionWidth={sectionWidth} sectionWidth={sectionWidth}
isDefaultMode={false} isDefaultMode={false}

View File

@ -155,7 +155,6 @@ class ArticleBodyContent extends React.Component {
const items = this.catalogItems(); const items = this.catalogItems();
const { isLoadedPage } = this.props; const { isLoadedPage } = this.props;
const commonSettings = location.pathname.includes("common"); const commonSettings = location.pathname.includes("common");
// TODO: styles fix
const showLoader = commonSettings ? !isLoadedPage : false; const showLoader = commonSettings ? !isLoadedPage : false;

View File

@ -15,7 +15,6 @@ const StyledLoader = styled.div`
@media (min-width: 1024px) { @media (min-width: 1024px) {
padding: 0px 20px 0px; padding: 0px 20px 0px;
margin-top: -7px;
.loader { .loader {
width: 216px; width: 216px;

View File

@ -37,23 +37,11 @@ const StyledSettingsComponent = styled.div`
font-weight: 400; font-weight: 400;
} }
.field-container-flex {
display: flex;
justify-content: space-between;
margin-top: 8px;
margin-bottom: 12px;
}
.toggle { .toggle {
position: inherit; position: inherit;
grid-gap: inherit; grid-gap: inherit;
} }
.field-title {
font-weight: 600;
line-height: 20px;
}
.errorText { .errorText {
position: absolute; position: absolute;
font-size: 10px; font-size: 10px;

View File

@ -1,7 +1,6 @@
import React from "react"; import React from "react";
import { withTranslation } from "react-i18next"; import { withTranslation } from "react-i18next";
import FieldContainer from "@appserver/components/field-container"; import FieldContainer from "@appserver/components/field-container";
import ToggleButton from "@appserver/components/toggle-button";
import ComboBox from "@appserver/components/combobox"; import ComboBox from "@appserver/components/combobox";
import toastr from "@appserver/components/toast/toastr"; import toastr from "@appserver/components/toast/toastr";
import HelpButton from "@appserver/components/help-button"; import HelpButton from "@appserver/components/help-button";
@ -433,13 +432,6 @@ class LanguageAndTimeZone extends React.Component {
className="dropdown-item-width" className="dropdown-item-width"
/> />
</FieldContainer> </FieldContainer>
<div className="field-container-flex">
<div className="field-title">{`${t("Automatic time zone")}`}</div>
<ToggleButton
className="toggle"
onChange={() => toastr.info(<>Not implemented</>)}
/>
</div>
<FieldContainer <FieldContainer
id="fieldContainerTimezone" id="fieldContainerTimezone"
labelText={`${t("TimeZone")}:`} labelText={`${t("TimeZone")}:`}

View File

@ -60,7 +60,12 @@ class WelcomePageSettings extends React.Component {
} }
componentDidMount() { componentDidMount() {
const { isLoaded, setIsLoadedWelcomePageSettings, tReady } = this.props;
window.addEventListener("resize", this.checkInnerWidth); window.addEventListener("resize", this.checkInnerWidth);
const isLoadedSetting = isLoaded && tReady;
if (isLoadedSetting) setIsLoadedWelcomePageSettings(isLoadedSetting);
} }
componentDidUpdate(prevProps, prevState) { componentDidUpdate(prevProps, prevState) {
@ -68,9 +73,13 @@ class WelcomePageSettings extends React.Component {
const { hasScroll } = this.state; const { hasScroll } = this.state;
const isLoadedSetting = isLoaded && tReady; if (isLoaded !== prevProps.isLoaded || tReady !== prevProps.tReady) {
const isLoadedSetting = isLoaded && tReady;
if (isLoadedSetting) setIsLoadedWelcomePageSettings(isLoadedSetting); if (isLoadedSetting) {
setIsLoadedWelcomePageSettings(isLoadedSetting);
}
}
const checkScroll = checkScrollSettingsBlock(); const checkScroll = checkScrollSettingsBlock();

View File

@ -127,7 +127,6 @@ const LoaderCustomization = ({
<Loaders.Rectangle height="32px" className="combo-box" /> <Loaders.Rectangle height="32px" className="combo-box" />
{lngTZSettings && ( {lngTZSettings && (
<> <>
<Loaders.Rectangle height="20px" className="field-container" />
<Loaders.Rectangle height="20px" className="title-long" /> <Loaders.Rectangle height="20px" className="title-long" />
<Loaders.Rectangle height="32px" className="combo-box" /> <Loaders.Rectangle height="32px" className="combo-box" />
</> </>