1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-09-11 03:52:33 +02:00

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

This commit is contained in:
nitsua 2020-09-12 17:27:41 -04:00 committed by Qstick
parent 587e6b570c
commit 02845c72d3
3 changed files with 12 additions and 4 deletions

View File

@ -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;

View File

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

View File

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