Fix issue with the table stretching on the Movie > Details > Search when the Title is extremely long

This commit is contained in:
nitsua
2020-08-08 12:03:36 -04:00
committed by Qstick
parent 28177eb042
commit 154092b921
3 changed files with 34 additions and 9 deletions

View File

@@ -32,6 +32,7 @@ class Link extends Component {
isDisabled,
noRouter,
onPress,
title,
...otherProps
} = this.props;
@@ -39,6 +40,10 @@ class Link extends Component {
let el = component;
if (to) {
if (title) {
linkProps.title = title;
}
if ((/\w+?:\/\//).test(to)) {
el = 'a';
linkProps.href = to;
@@ -87,6 +92,7 @@ Link.propTypes = {
className: PropTypes.string,
component: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
to: PropTypes.string,
title: PropTypes.string,
target: PropTypes.string,
isDisabled: PropTypes.bool,
noRouter: PropTypes.bool,