Web: Files: THumbnails: fixed opened folder when click on context menu

This commit is contained in:
Artem Tarasov 2021-06-22 15:14:02 +03:00
parent 2b2fddf857
commit 28614d8f39
3 changed files with 5 additions and 7 deletions

View File

@ -194,7 +194,6 @@ export default function withFileActions(WrappedFileItem) {
if (!fileExst && !contentLength) {
setIsLoading(true);
if (!expandedKeys.includes(parentFolder + "")) {
addExpandedKeys(parentFolder + "");
}

View File

@ -66,7 +66,6 @@ const SimpleFilesTileContent = styled(TileContent)`
`;
const FilesTileContent = ({
t,
item,
titleWithoutExt,
linkStyles,

View File

@ -138,7 +138,7 @@ const StyledElement = styled.div`
const StyledOptionButton = styled.div`
display: block;
.expand-button > div:first-child {
.expandButton > div:first-child {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 12px;
@ -248,14 +248,14 @@ class Tile extends React.PureComponent {
<ContextMenuButton
color="#A3A9AE"
hoverColor="#657077"
className="expand-button"
className="expandButton"
directionX="right"
getData={getOptions}
isNew={true}
onClick={onContextMenu}
/>
) : (
<div className="expand-button"> </div>
<div className="expandButton"> </div>
)}
<ContextMenu model={contextOptions} ref={this.cm}></ContextMenu>
</StyledOptionButton>
@ -282,14 +282,14 @@ class Tile extends React.PureComponent {
<ContextMenuButton
color="#A3A9AE"
hoverColor="#657077"
className="expand-button"
className="expandButton"
directionX="right"
getData={getOptions}
isNew={true}
onClick={onContextMenu}
/>
) : (
<div className="expand-button"> </div>
<div className="expandButton"> </div>
)}
<ContextMenu model={contextOptions} ref={this.cm}></ContextMenu>
</StyledOptionButton>