Web: Files: TilesView: fixed font and icon size

This commit is contained in:
Artem Tarasov 2021-10-20 10:57:30 +03:00
parent 1c7d4a9714
commit ba5bcda891
3 changed files with 13 additions and 18 deletions

View File

@ -54,7 +54,7 @@ const SimpleFilesTileContent = styled(TileContent)`
}
.title-link {
font-size: 14px;
font-size: 13px;
}
.favorite,
@ -83,18 +83,14 @@ const FilesTileContent = ({
return (
<>
<SimpleFilesTileContent
sideColor="#333"
isFile={fileExst}
//disableSideInfo
>
<SimpleFilesTileContent sideColor="#333" isFile={fileExst}>
<Link
className="title-link item-file-name"
containerWidth="100%"
type="page"
title={title}
fontWeight="600"
fontSize="14px"
fontSize="13px"
target="_blank"
{...linkStyles}
color="#333"
@ -106,7 +102,7 @@ const FilesTileContent = ({
className="badge-ext"
as="span"
color="#A3A9AE"
fontSize="14px"
fontSize="13px"
fontWeight={600}
truncate={true}
>

View File

@ -115,7 +115,7 @@ const StyledTile = styled.div`
.file-checkbox {
display: ${(props) => (props.checked ? "flex" : "none")};
flex: 0 0 16px;
margin-right: ${(props) => (props.isFolder ? "8px" : "4px")};
//margin-right: ${(props) => (props.isFolder ? "8px" : "4px")};
margin-top: 3px;
justify-content: center;
@ -129,24 +129,23 @@ const StyledTile = styled.div`
flex: 0 0 auto;
margin-right: 4px;
user-select: none;
margin-top: 3px;
margin-top: ${(props) => (props.isFolder ? "-6px" : "-4px")};
margin-top: ${(props) => (props.isFolder ? "-8px" : "-6px")};
height: 32px;
width: 32px;
height: 24px;
width: 24px;
img {
height: 32px;
width: 32px;
height: 24px;
width: 24px;
}
}
.file-icon_container {
min-width: 36px;
min-width: 28px;
}
.styled-content {
padding-left: ${(props) => (props.isFolder ? "10px" : "12px")};
padding-left: 10px;
}
:hover {

View File

@ -1134,7 +1134,7 @@ class FilesStore {
const isThirdPartyFolder = providerKey && id === rootFolderId;
//const isCanWebEdit = canWebEdit(item.fileExst);
const iconSize = this.viewAs === "tile" ? 32 : 24;
const iconSize = 24; // this.viewAs === "tile" ? 32 : 24;
const icon = getIcon(iconSize, fileExst, providerKey, contentLength);
let isFolder = false;