Skip to content

Commit aff5717

Browse files
committed
fix(ui): Fix album art ordering
1 parent fa39209 commit aff5717

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/client/components/player/Player.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ art = {},
8888
<FontAwesomeIcon color="black" icon={viewMode === 'playlist' ? faTimes : faBars}/>
8989
</button>
9090
<section className="player__body">
91-
<div className="player__info" style={{position: 'relative'}}>
92-
<div className="player-album">{playArt !== undefined ? <img style={{height: '100%'}} src={playArt}></img> : null}</div>
93-
<p className="title">{calculated !== 'stopped' ? track : '-'}</p>
94-
<p className="subtitle">{calculated !== 'stopped' ? artists.join(' / ') : '-'}</p>
91+
<div className="player__info" style={{position: 'relative', zIndex: 0}}>
92+
<div className="player-album">{playArt !== undefined ? <img style={{height: '100%', maxWidth: '90px'}} src={playArt}></img> : null}</div>
93+
<p className="title">{calculated !== 'stopped' ? track : '-'}</p>
94+
<p className="subtitle">{calculated !== 'stopped' ? artists.join(' / ') : '-'}</p>
9595
</div>
9696

9797
<PlayerTimestamp duration={duration} current={data.position || 0} />

src/client/components/player/player.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ $primary: #00ACC1;
3232
}
3333

3434
.player-album {
35-
width: 100%;
35+
//width: 100%;
3636
height: 100%;
3737
position: absolute;
3838
left: calc($spacing/1);
@@ -163,6 +163,7 @@ $primary: #00ACC1;
163163
padding-top: calc($spacing/4);
164164
margin-bottom: $spacing;
165165
text-transform: uppercase;
166+
position: relative;
166167
}
167168
}
168169
}

0 commit comments

Comments
 (0)