Stepanova Asya 1 year ago
parent
commit
0ace63c98a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/components/playlistById.js

+ 2 - 2
src/components/playlistById.js

@@ -46,8 +46,8 @@ export const PlaylistById = ({playlist = {}, tracks={}}) => {
     <div className='d-flex justify-content-around w-100'>
         <div className='w-100 pt-4'>
             <div className='d-flex mb-3 w-100'>
-                <div className='me-4'>
-                    <img className='rounded-5' src={playlist.photo} width ='250px' alt='...'/>
+            <div className='me-4 playlist-img-box rounded-5' style={{backgroundImage: `url(${playlist.photo})`, backgroundSize: "cover", backgroundRepeat: "no-repeat", backgroundPosition: "center"}}>
+                    {/*<img className='rounded-5 playlist-img' src={playlist.photo} width ='250px' alt='...'/>*/}
                 </div>
                 <div className='w-100'>
                     <div className="d-flex flex-column justify-content-between h-100">