Skip to content

Commit

Permalink
Web: Files: Tiles: Renaming redesign, fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-kulak committed Dec 23, 2021
1 parent c4c8970 commit 18aa012
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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) =>
Expand All @@ -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" &&
Expand Down Expand Up @@ -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 = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 18aa012

Please sign in to comment.