mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-17 15:02:34 +02:00
Add tooltip to path & movie title on the movie index table view
This commit is contained in:
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…
Reference in New Issue
Block a user