Fix Bug 57980: wrong tip position

This commit is contained in:
Viktor Fomin 2022-07-07 00:20:22 +03:00
parent e06c076f80
commit ca799f867f
2 changed files with 5 additions and 6 deletions

View File

@ -99,11 +99,6 @@ const FileTile = (props) => {
getContextModel={getContextModel}
hideContextMenu={onHideContextMenu}
t={t}
title={
item.isFolder
? t("Translations:TitleShowFolderActions")
: t("Translations:TitleShowActions")
}
showHotkeyBorder={showHotkeyBorder}
setSelection={setSelection}
>

View File

@ -415,10 +415,10 @@ class Tile extends React.PureComponent {
inProgress,
isEdit,
contentElement,
title,
getContextModel,
showHotkeyBorder,
hideContextMenu,
t,
} = this.props;
const { isFolder, id, fileExst } = item;
@ -458,6 +458,10 @@ class Tile extends React.PureComponent {
title: children[0].props.item.title,
};
const title = item.isFolder
? t("Translations:TitleShowFolderActions")
: t("Translations:TitleShowActions");
return (
<StyledTile
ref={this.tile}