diff --git a/products/ASC.Files/Client/src/HOCs/withLoader.js b/products/ASC.Files/Client/src/HOCs/withLoader.js index 8cd3ea84e3..e53b44bc20 100644 --- a/products/ASC.Files/Client/src/HOCs/withLoader.js +++ b/products/ASC.Files/Client/src/HOCs/withLoader.js @@ -8,7 +8,6 @@ const pathname = window.location.pathname.toLowerCase(); const isEditor = pathname.indexOf("doceditor") !== -1; let loadTimeout = null; - const withLoader = (WrappedComponent) => (Loader) => { const withLoader = (props) => { const { tReady, firstLoad, isLoaded, isLoading, viewAs } = props; @@ -23,12 +22,12 @@ const withLoader = (WrappedComponent) => (Loader) => { if (isLoading) { cleanTimer(); loadTimeout = setTimeout(() => { - //console.log('inLoad', true) + //console.log("inLoad", true); setInLoad(true); }, 500); } else { cleanTimer(); - //console.log('inLoad', false) + //console.log("inLoad", false); setInLoad(false); } diff --git a/products/ASC.Files/Client/src/pages/Home/Section/Body/TilesView/sub-components/Tile.js b/products/ASC.Files/Client/src/pages/Home/Section/Body/TilesView/sub-components/Tile.js index 5d5ff6868b..a3601f4f8b 100644 --- a/products/ASC.Files/Client/src/pages/Home/Section/Body/TilesView/sub-components/Tile.js +++ b/products/ASC.Files/Client/src/pages/Home/Section/Body/TilesView/sub-components/Tile.js @@ -159,11 +159,6 @@ const StyledFileTileBottom = styled.div` padding: 9px 0; height: 64px; box-sizing: border-box; - - .tile-file-loader { - padding-top: 4px; - padding-left: 3px; - } `; const StyledContent = styled.div` @@ -491,25 +486,17 @@ class Tile extends React.PureComponent { {id !== -1 && !isEdit && ( <> - {!inProgress ? ( -
-
- {element} -
- +
+
+ {element}
- ) : ( - - )} +
)}