diff --git a/packages/asc-web-common/components/Loaders/TileLoader/StyledTileLoader.js b/packages/asc-web-common/components/Loaders/TileLoader/StyledTileLoader.js
index 60dcf68fa04..bce25a8ed90 100644
--- a/packages/asc-web-common/components/Loaders/TileLoader/StyledTileLoader.js
+++ b/packages/asc-web-common/components/Loaders/TileLoader/StyledTileLoader.js
@@ -1,85 +1,79 @@
import styled, { css } from "styled-components";
-import { mobile, tablet } from "@appserver/components/utils/device";
+import { smallTablet, tablet, size } from "@appserver/components/utils/device";
const StyledTile = styled.div`
position: relative;
display: grid;
- //min-width: 250px;
width: 100%;
- height: ${(props) => (props.isFolder ? "57px" : "240px")};
- border: 1px solid #d0d5da;
- border-radius: 3px;
+ height: ${(props) => (props.isFolder ? "32px" : "220px")};
- ${(props) =>
- props.isFolder
- ? css`
- &:before {
- content: "";
- position: absolute;
- top: -5px;
- left: -1px;
- border-top: 1px solid #d0d5da;
- border-top-left-radius: 3px;
- border-left: 1px solid #d0d5da;
- width: 38px;
- height: 8px;
- background-color: #fff;
- border-bottom: transparent;
- }
+ @media ${smallTablet} {
+ &:nth-of-type(n + 3) {
+ display: none;
+ }
- &:after {
- content: "";
- position: absolute;
- top: -4px;
- left: 34px;
- border-top: 1px solid #d0d5da;
- background-color: #fff;
- width: 7px;
- height: 10px;
- transform: rotateZ(35deg);
+ ${(props) =>
+ props.isFolder &&
+ css`
+ &:nth-of-type(n + 2) {
+ display: none;
+ }
+ `}
+ }
- @media ${tablet} {
- left: 34px;
- }
- }
- `
- : null}
+ @media (min-width: ${size.smallTablet}px) and ${tablet} {
+ &:nth-of-type(n + 7) {
+ display: none;
+ }
+ }
`;
const StyledMainContent = styled.div`
- padding: 12px 12px 4px 12px;
- height: 175px;
-
- clipPath > rect {
- width: calc(100% + 20px);
- }
+ height: 172px;
`;
const StyledBottom = styled.div`
- display: grid;
- grid-template-columns: 24px auto;
- grid-gap: 8px;
- padding: ${(props) => (props.isFolder ? "20px 12px" : "8px 12px 12px 12px")};
+ display: flex;
+ align-items: ${(props) => (props.isFolder ? "center" : "stretch")};
+ margin-top: ${(props) => (props.isFolder ? 0 : "10px")};
+ height: 38px;
.first-content {
- display: inline-block;
- ${(props) =>
- !props.isFolder
- ? css`
- width: 24px;
- height: 30px;
- `
- : css`
- width: 16px;
- height: 16px;
- `}
+ height: 32px;
+ width: 32px;
+ min-width: 32px;
}
+
.second-content {
- clipPath > rect {
- width: calc(100% + 20px);
- }
width: 100%;
- height: ${(props) => (props.isFolder ? "16px" : "30px")};
+ height: ${(props) => (props.isFolder ? "32px" : "16px")};
+ margin-left: 8px;
+ }
+
+ .files-second-content {
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+ align-items: flex-end;
+ margin-left: 8px;
+
+ .second-content {
+ &:last-of-type {
+ height: 12px;
+ margin-right: auto;
+ margin-left: 0;
+ width: 50%;
+ border-radius: 3px;
+ }
+ }
+ }
+
+ .option-button {
+ height: 16px;
+ width: 16px;
+ min-width: 16px;
+ margin-left: 8px;
+ border-radius: 6px;
}
`;
diff --git a/packages/asc-web-common/components/Loaders/TileLoader/TileLoader.js b/packages/asc-web-common/components/Loaders/TileLoader/TileLoader.js
index e3d519737c4..e578e755009 100644
--- a/packages/asc-web-common/components/Loaders/TileLoader/TileLoader.js
+++ b/packages/asc-web-common/components/Loaders/TileLoader/TileLoader.js
@@ -32,7 +32,7 @@ const TileLoader = ({
backgroundOpacity={backgroundOpacity}
foregroundOpacity={foregroundOpacity}
speed={speed}
- animate={false}
+ animate={true}
/>