Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
Fix appearance for series with weird image proportions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Robinson committed Sep 10, 2018
1 parent 85a1035 commit e0a2c5e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/components/FeaturedSermons/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const Link = styled.a`
text-decoration: none !important;
display: block;
transition: opacity 0.2s ease-out;
width: 100%;
@media ${MEDIA_QUERIES.canHover} {
&:hover {
Expand Down
11 changes: 5 additions & 6 deletions src/components/SeriesList/SeriesListItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import { type Series } from "../../types";
import SeriesThumbnail from "../SeriesThumbnail";
import OpacityButton from "../OpacityButton";

const Thumbnail = styled.div`
const Button = styled(OpacityButton)`
font-size: 1rem;
line-height: normal;
width: 100%;
`;

type Props = {|
Expand All @@ -21,15 +22,13 @@ export default class SeriesListItem extends PureComponent<Props> {
render() {
const { series, onClick } = this.props;
return (
<OpacityButton
<Button
onClick={() => {
onClick(series.id);
}}
>
<Thumbnail>
<SeriesThumbnail series={series} />
</Thumbnail>
</OpacityButton>
<SeriesThumbnail series={series} />
</Button>
);
}
}

0 comments on commit e0a2c5e

Please sign in to comment.