add image to playlist header

This commit is contained in:
jeffvli
2021-08-26 18:57:11 -07:00
parent 2c681a1115
commit 6aee21e5a2
2 changed files with 10 additions and 2 deletions

View File

@@ -21,7 +21,14 @@ const GenericPageHeader = ({
<>
{image && (
<div style={{ display: 'inline-block' }}>
{image && <LazyLoadImage src={image} effect="opacity" height="150" />}
{image && (
<LazyLoadImage
src={image}
effect="opacity"
height={145}
width={145}
/>
)}
</div>
)}
@@ -29,7 +36,7 @@ const GenericPageHeader = ({
style={{
display: 'inline-block',
width: image ? 'calc(100% - 160px)' : '100%',
marginLeft: image ? '10px' : '0px',
marginLeft: image ? '15px' : '0px',
height: '100%',
}}
>

View File

@@ -124,6 +124,7 @@ const PlaylistView = () => {
<GenericPage
header={
<GenericPageHeader
image={data.image}
title={data.name}
subtitle={
<div>