Web: Files: Tiles: Renaming redesign, fixes

This commit is contained in:
Dmitry Kulak 2021-12-21 18:00:12 +03:00
parent c4c897028c
commit 18aa0121f9
3 changed files with 10 additions and 11 deletions

View File

@ -6,6 +6,7 @@ import commonIconsStyles from "@appserver/components/utils/common-icons-style";
import CheckIcon from "../../public/images/check.react.svg";
import CrossIcon from "../../../../../public/images/cross.react.svg";
import { tablet } from "@appserver/components/utils/device";
const StyledCheckIcon = styled(CheckIcon)`
${commonIconsStyles}
@ -54,9 +55,10 @@ const EditingWrapper = styled.div`
props.viewAs === "tile" &&
`margin-right: 12px !important; margin-left: -4px;`}
@media (max-width: 1024px) {
@media ${tablet} {
height: 56px;
}
.edit-text {
height: 32px;
font-size: ${(props) =>
@ -68,15 +70,19 @@ const EditingWrapper = styled.div`
outline: 0 !important;
font-weight: 600;
margin: 0;
margin-left: 2px;
font-family: "Open Sans", sans-serif, Arial;
text-align: left;
color: #333333;
margin-left: 6px;
border: none;
background: none;
}
.edit-button {
margin-left: 8px;
height: 32px;
padding: 8px 7px 7px 7px;
border: none;
background: none;
${(props) =>
props.viewAs === "table" &&
@ -139,11 +145,9 @@ const EditingWrapperComponent = (props) => {
if (!isLoading) setIsLoading(true);
return onClickUpdateItem(e);
}
//if (code === 27) return cancelUpdateItem(e);
};
const onEscapeKeyPress = (e) => {
if (e.keyCode === 27) return cancelUpdateItem(e);
return;
};
const setIsHoveredOkHandler = () => {

View File

@ -59,7 +59,6 @@ const StyledTile = styled.div`
${(props) => props.isFolder && FlexBoxStyles}
${(props) => (props.isFolder ? FolderStyles : FileStyles)}
${(props) => (props.checked || props.isActive) && checkedStyle}
&:before,
&:after {
@ -151,10 +150,6 @@ const StyledFileTileTop = styled.div`
background-color: #f8f9f9;
height: 154px;
position: relative;
border-bottom: ${(props) =>
props.checked || props.isActive
? "1px solid #D0D5DA"
: "1px solid transparent"};
.thumbnail-image,
.temporary-icon > .injected-svg {

View File

@ -22,7 +22,7 @@ const paddingCss = css`
const StyledGridWrapper = styled.div`
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
grid-template-columns: repeat(auto-fill, minmax(216px, 1fr));
width: 100%;
margin-bottom: ${(props) => (props.isFolders ? "29px" : 0)};
box-sizing: border-box;