mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-19 22:46:20 -05:00
Using image directly so poster is not too tall.
This commit is contained in:
parent
a0df01f7b9
commit
4f63e87c1c
1 changed files with 2 additions and 4 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue