From 8fabf1eee4f0d1b91f2fa689bebb89c60c1de85a Mon Sep 17 00:00:00 2001 From: Michael An <2331806369@qq.com> Date: Mon, 30 Dec 2024 11:44:01 +0800 Subject: [PATCH] change grid item cursor style (#7279) --- .../dirent-grid-view/dirent-grid-item.js | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/frontend/src/components/dirent-grid-view/dirent-grid-item.js b/frontend/src/components/dirent-grid-view/dirent-grid-item.js index 4345290d8f2..faf06d7f03e 100644 --- a/frontend/src/components/dirent-grid-view/dirent-grid-item.js +++ b/frontend/src/components/dirent-grid-view/dirent-grid-item.js @@ -1,4 +1,4 @@ -import React, { Fragment } from 'react'; +import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import MD5 from 'MD5'; @@ -296,8 +296,8 @@ class DirentGridItem extends React.Component { }; render() { - let { dirent } = this.state; - let { is_freezed, is_locked, lock_owner_name, file_tags } = dirent; + let { dirent, isGridDropTipShow } = this.state; + let { is_freezed, is_locked, lock_owner_name, file_tags, isSelected } = dirent; let toolTipID = ''; let tagTitle = ''; if (file_tags && file_tags.length > 0) { @@ -306,15 +306,16 @@ class DirentGridItem extends React.Component { } const showName = this.getRenderedText(dirent); return ( - + <>
  • + onMouseDown={this.onGridItemMouseDown} + onClick={this.onItemClick} + >
    {(dirent.type !== 'dir' && file_tags && file_tags.length > 0) && ( - + <>
    {file_tags.map((fileTag, index) => { let length = file_tags.length; @@ -348,7 +349,7 @@ class DirentGridItem extends React.Component { {tagTitle} - + )} {(!dirent.isDir() && !this.canPreview) ?
  • -
    + ); } }