Using image directly so poster is not too tall.

This commit is contained in:
Roland 2023-02-17 16:01:00 -07:00
parent a0df01f7b9
commit 4f63e87c1c
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -440,12 +440,10 @@ export function CardGroupCentered(props) {
export function CardPosterLink({to, poster_url, imageLabel, external = false}) {
const {s} = useContext(ThemeContext);
const style = {display: 'flex', justifyContent: 'center', ...s['style']};
const image = <Image fluid
src={poster_url}
label={imageLabel}
const image = <img src={poster_url} alt={imageLabel}
style={{maxHeight: '163px', width: 'auto'}}
/>;
if (external === true) {
if (external === true && to) {
return <a href={to} target='_blank' rel='noreferrer' style={style}>
{image}
</a>