Add tooltip to path & movie title on the movie index table view

pull/5023/head
nitsua 4 years ago committed by Qstick
parent 587e6b570c
commit 02845c72d3

@ -5,12 +5,14 @@ import styles from './VirtualTableRowCell.css';
function VirtualTableRowCell(props) {
const {
className,
children
children,
title
} = props;
return (
<div
className={className}
title={title}
>
{children}
</div>
@ -19,11 +21,13 @@ function VirtualTableRowCell(props) {
VirtualTableRowCell.propTypes = {
className: PropTypes.string.isRequired,
children: PropTypes.oneOfType([PropTypes.string, PropTypes.node])
children: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
title: PropTypes.string
};
VirtualTableRowCell.defaultProps = {
className: styles.cell
className: styles.cell,
title: ''
};
export default VirtualTableRowCell;

@ -277,6 +277,7 @@ class MovieIndexRow extends Component {
<VirtualTableRowCell
key={name}
className={styles[name]}
title={path}
>
{path}
</VirtualTableRowCell>

@ -13,7 +13,10 @@ class MovieTitleLink extends PureComponent {
const link = `/movie/${titleSlug}`;
return (
<Link to={link}>
<Link
to={link}
title={title}
>
{title}
</Link>
);

Loading…
Cancel
Save