mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fixed: OriginalTitle in the API using the Title
New: Change tooltip (title) on movie details to original title
This commit is contained in:
@@ -9,6 +9,7 @@ class Marquee extends Component {
|
||||
|
||||
static propTypes = {
|
||||
text: PropTypes.string,
|
||||
title: PropTypes.string,
|
||||
hoverToStop: PropTypes.bool,
|
||||
loop: PropTypes.bool,
|
||||
className: PropTypes.string
|
||||
@@ -16,6 +17,7 @@ class Marquee extends Component {
|
||||
|
||||
static defaultProps = {
|
||||
text: '',
|
||||
title: '',
|
||||
hoverToStop: true,
|
||||
loop: false
|
||||
};
|
||||
@@ -144,7 +146,7 @@ class Marquee extends Component {
|
||||
this.text = el;
|
||||
}}
|
||||
style={style}
|
||||
title={this.props.text}
|
||||
title={(this.props.title && (this.props.text !== this.props.title)) ? `Original Title: ${this.props.title}` : this.props.text}
|
||||
>
|
||||
{this.props.text}
|
||||
</span>
|
||||
@@ -167,7 +169,7 @@ class Marquee extends Component {
|
||||
this.text = el;
|
||||
}}
|
||||
style={style}
|
||||
title={this.props.text}
|
||||
title={(this.props.title && (this.props.text !== this.props.title)) ? `Original Title: ${this.props.title}` : this.props.text}
|
||||
>
|
||||
{this.props.text}
|
||||
</span>
|
||||
|
@@ -235,6 +235,7 @@ class MovieDetails extends Component {
|
||||
tmdbId,
|
||||
imdbId,
|
||||
title,
|
||||
originalTitle,
|
||||
year,
|
||||
inCinemas,
|
||||
physicalRelease,
|
||||
@@ -370,7 +371,7 @@ class MovieDetails extends Component {
|
||||
</div>
|
||||
|
||||
<div className={styles.title} style={{ width: marqueeWidth }}>
|
||||
<Marquee text={title} />
|
||||
<Marquee text={title} title={originalTitle} />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -736,6 +737,7 @@ MovieDetails.propTypes = {
|
||||
tmdbId: PropTypes.number.isRequired,
|
||||
imdbId: PropTypes.string,
|
||||
title: PropTypes.string.isRequired,
|
||||
originalTitle: PropTypes.string,
|
||||
year: PropTypes.number.isRequired,
|
||||
runtime: PropTypes.number.isRequired,
|
||||
certification: PropTypes.string,
|
||||
|
Reference in New Issue
Block a user