mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-23 12:27:48 +00:00
fix expand icon tooltip (#8090)
Co-authored-by: zhouwenxuan <aries@Mac.local>
This commit is contained in:
@@ -35,12 +35,7 @@
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.sf-metadata-result-table-row .sf-metadata-result-table-cell.actions-cell #expand {
|
||||
display: none;
|
||||
color: #467fcf;
|
||||
}
|
||||
|
||||
.sf-metadata-result-table-row:hover .sf-metadata-result-table-cell.actions-cell #expand {
|
||||
.sf-metadata-result-table-row:hover .sf-metadata-result-table-cell.actions-cell .row-expand {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
display: flex;
|
||||
@@ -49,6 +44,15 @@
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.sf-metadata-result-table-row .sf-metadata-result-table-cell.actions-cell #expand:hover {
|
||||
.sf-metadata-result-table-row:hover .sf-metadata-result-table-cell.actions-cell .row-expand .row-expand-icon {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.sf-metadata-result-table-row .sf-metadata-result-table-cell.actions-cell .row-expand-icon {
|
||||
display: none;
|
||||
color: #467fcf;
|
||||
}
|
||||
|
||||
.sf-metadata-result-table-row .sf-metadata-result-table-cell.actions-cell .row-expand:hover {
|
||||
background-color: #c2f5e9;
|
||||
}
|
||||
|
@@ -1,11 +1,11 @@
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import { Tooltip } from 'reactstrap';
|
||||
import { Tooltip, UncontrolledTooltip } from 'reactstrap';
|
||||
import { gettext } from '../../../../../../../utils/constants';
|
||||
import { isMobile } from '../../../../../../../utils/utils';
|
||||
import { SEQUENCE_COLUMN_WIDTH } from '../../../../../../constants';
|
||||
import IconButton from '../../../../../../../components/icon-button';
|
||||
import Icon from '../../../../../../../components/icon';
|
||||
|
||||
import './index.css';
|
||||
|
||||
@@ -91,7 +91,10 @@ class ActionsCell extends Component {
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<IconButton id="expand" icon="expand" text={gettext('Expand')} onClick={this.handleShowExpandedProps} />
|
||||
<span id={`expand-row-${index}`} className="row-expand" onClick={this.handleShowExpandedProps}>
|
||||
<Icon symbol="expand" className="row-expand-icon" />
|
||||
</span>
|
||||
<UncontrolledTooltip placement='bottom' target={`expand-row-${index}`} fade={false} trigger="hover">{gettext('Expand')}</UncontrolledTooltip>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user