Fixed: Links and already added icons overflowing on add series search results

pull/3919/head
Mark McDowall 5 years ago
parent e42aad4b2f
commit d222387d01

@ -34,10 +34,20 @@
.content { .content {
flex: 0 1 100%; flex: 0 1 100%;
overflow: hidden;
} }
.title { .titleRow {
display: flex;
}
.titleContainer {
display: flex; display: flex;
align-items: flex-end;
flex: 0 1 auto;
}
.title {
font-weight: 300; font-weight: 300;
font-size: 36px; font-size: 36px;
} }
@ -47,6 +57,14 @@
color: $disabledColor; color: $disabledColor;
} }
.icons {
display: flex;
align-items: center;
justify-content: space-between;
flex: 1 0 auto;
height: 55px;
}
.tvdbLink { .tvdbLink {
composes: link from '~Components/Link/Link.css'; composes: link from '~Components/Link/Link.css';
@ -68,3 +86,10 @@
.overview { .overview {
margin-top: 20px; margin-top: 20px;
} }
@media only screen and (max-width: $breakpointMedium) {
.titleRow {
justify-content: space-between;
overflow: hidden;
}
}

@ -97,39 +97,45 @@ class AddNewSeriesSearchResult extends Component {
} }
<div className={styles.content}> <div className={styles.content}>
<div className={styles.title}> <div className={styles.titleRow}>
{title} <div className={styles.titleContainer}>
<div className={styles.title}>
{ {title}
!title.contains(year) && year ?
<span className={styles.year}> {
!title.contains(year) && year ?
<span className={styles.year}>
({year}) ({year})
</span> : </span> :
null null
} }
</div>
{ </div>
isExistingSeries ?
<div className={styles.icons}>
{
isExistingSeries ?
<Icon
className={styles.alreadyExistsIcon}
name={icons.CHECK_CIRCLE}
size={36}
title="Already in your library"
/> :
null
}
<Link
className={styles.tvdbLink}
to={`http://www.thetvdb.com/?tab=series&id=${tvdbId}`}
onPress={this.onTVDBLinkPress}
>
<Icon <Icon
className={styles.alreadyExistsIcon} className={styles.tvdbLinkIcon}
name={icons.CHECK_CIRCLE} name={icons.EXTERNAL_LINK}
size={36} size={28}
title="Already in your library" />
/> : </Link>
null </div>
}
<Link
className={styles.tvdbLink}
to={`http://www.thetvdb.com/?tab=series&id=${tvdbId}`}
onPress={this.onTVDBLinkPress}
>
<Icon
className={styles.tvdbLinkIcon}
name={icons.EXTERNAL_LINK}
size={28}
/>
</Link>
</div> </div>
<div> <div>

Loading…
Cancel
Save