diff --git a/packages/asc-web-common/components/Section/index.js b/packages/asc-web-common/components/Section/index.js index 86f2cafa52..ba3b070b16 100644 --- a/packages/asc-web-common/components/Section/index.js +++ b/packages/asc-web-common/components/Section/index.js @@ -279,11 +279,7 @@ class Section extends React.Component { return ( <> {isSectionAvailable && ( - + {({ width, height }) => ( { useEffect(() => { if ((viewAs !== "table" && viewAs !== "row") || !sectionWidth) return; - + // 400 - it is desktop info panel width if ( (sectionWidth < 1025 && !infoPanelVisible) || (sectionWidth < 625 && infoPanelVisible) || diff --git a/products/ASC.Files/Client/src/pages/Home/Section/Body/TableView/TableContainer.js b/products/ASC.Files/Client/src/pages/Home/Section/Body/TableView/TableContainer.js index 3c83847903..62f50fc79d 100644 --- a/products/ASC.Files/Client/src/pages/Home/Section/Body/TableView/TableContainer.js +++ b/products/ASC.Files/Client/src/pages/Home/Section/Body/TableView/TableContainer.js @@ -110,7 +110,7 @@ const Table = ({ useEffect(() => { if ((viewAs !== "table" && viewAs !== "row") || !setViewAs) return; - + // 400 - it is desktop info panel width if ( (sectionWidth < 1025 && !infoPanelVisible) || (sectionWidth < 625 && infoPanelVisible) ||