diff --git a/packages/asc-web-common/components/FilterInput/sub-components/SortButton.js b/packages/asc-web-common/components/FilterInput/sub-components/SortButton.js
index 105dce8807a..fd0217137c7 100644
--- a/packages/asc-web-common/components/FilterInput/sub-components/SortButton.js
+++ b/packages/asc-web-common/components/FilterInput/sub-components/SortButton.js
@@ -13,6 +13,7 @@ import { mobile } from "@appserver/components/utils/device";
import { Base } from "@appserver/components/themes";
import SortDesc from "../../../../../public/images/sort.desc.react.svg";
+import Backdrop from "@appserver/components/backdrop";
const selectedViewIcon = css`
svg {
@@ -203,14 +204,14 @@ const SortButton = ({
const onOptionClick = React.useCallback(
(e) => {
- const sortDirection =
- currentSelectedFilterData.sortDirection === "desc" &&
- e.target.closest(".option-item__icon")
- ? "asc"
- : "desc";
-
const key = e.target.closest(".option-item").dataset.value;
+ let sortDirection = currentSelectedFilterData.sortDirection;
+
+ if (key === currentSelectedFilterData.sortId) {
+ sortDirection = sortDirection === "desc" ? "asc" : "desc";
+ }
+
setCurrentSelectedFilterData({
sortId: key,
sortDirection: sortDirection,
@@ -287,30 +288,37 @@ const SortButton = ({
]);
return (
-
-
+
+
-
-
-
+
+
+
+
+ >
);
};
diff --git a/packages/asc-web-common/components/Section/sub-components/section-body.js b/packages/asc-web-common/components/Section/sub-components/section-body.js
index a25161fe45f..5a73ac31860 100644
--- a/packages/asc-web-common/components/Section/sub-components/section-body.js
+++ b/packages/asc-web-common/components/Section/sub-components/section-body.js
@@ -40,7 +40,7 @@ const commonStyles = css`
.section-wrapper {
${(props) =>
!props.withScroll &&
- `display: flex; height: 100%; box-sizing:border-box`};
+ `display: flex; flex-direction: column; height: 100%; box-sizing:border-box`};
${(props) => !props.withScroll && paddingStyles}
}
diff --git a/products/ASC.Files/Client/src/pages/Home/Section/Body/TilesView/sub-components/TileContainer.js b/products/ASC.Files/Client/src/pages/Home/Section/Body/TilesView/sub-components/TileContainer.js
index ea5ea229cb5..f4ad967d206 100644
--- a/products/ASC.Files/Client/src/pages/Home/Section/Body/TilesView/sub-components/TileContainer.js
+++ b/products/ASC.Files/Client/src/pages/Home/Section/Body/TilesView/sub-components/TileContainer.js
@@ -258,14 +258,14 @@ class TileContainer extends React.PureComponent {
};
onOptionClick = (e) => {
- const sortDirection =
- this.state.selectedFilterData.sortDirection === "desc" &&
- e.target.closest(".option-item__icon")
- ? "asc"
- : "desc";
-
const key = e.target.closest(".option-item").dataset.value;
+ let sortDirection = this.state.selectedFilterData.sortDirection;
+
+ if (key === this.state.selectedFilterData.sortId) {
+ sortDirection = sortDirection === "desc" ? "asc" : "desc";
+ }
+
this.setState({
selectedFilterData: {
sortId: key,
@@ -414,7 +414,7 @@ class TileContainer extends React.PureComponent {
size={"content"}
advancedOptions={advancedOptions}
disableIconClick={false}
- disableItemClick={true}
+ // disableItemClick={true}
isDefaultMode={false}
noBorder={true}
manualY={"102%"}
diff --git a/products/ASC.People/Client/src/pages/Profile/Section/Body/ProfileInfo/ProfileInfo.js b/products/ASC.People/Client/src/pages/Profile/Section/Body/ProfileInfo/ProfileInfo.js
index 5a1a424d8b2..43af33cdef8 100644
--- a/products/ASC.People/Client/src/pages/Profile/Section/Body/ProfileInfo/ProfileInfo.js
+++ b/products/ASC.People/Client/src/pages/Profile/Section/Body/ProfileInfo/ProfileInfo.js
@@ -31,7 +31,7 @@ const InfoItem = styled.div`
font-size: 13px;
line-height: 24px;
display: flex;
- width: 360px;
+ width: 358px;
`;
const InfoItemLabel = styled.div`
diff --git a/web/ASC.Web.Client/src/components/Main/index.js b/web/ASC.Web.Client/src/components/Main/index.js
index 873249a1821..e7c788a9e4a 100644
--- a/web/ASC.Web.Client/src/components/Main/index.js
+++ b/web/ASC.Web.Client/src/components/Main/index.js
@@ -5,7 +5,7 @@ import { isIOS, isFirefox, isMobile, isMobileOnly } from "react-device-detect";
const StyledMain = styled.main`
height: ${(props) =>
isIOS && !isFirefox
- ? "calc(100vh - 48px)"
+ ? "calc(var(--vh, 1vh) * 100)"
: props.isDesktop
? "100vh"
: "calc(100vh - 48px)"};