mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-08-08 16:07:44 +00:00
refactor: image styles
This commit is contained in:
parent
0584618b66
commit
363107de68
2 changed files with 10 additions and 2 deletions
|
|
@ -618,8 +618,8 @@ const Player = ({ urlParams, queryParams }) => {
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
!video.state.loaded ?
|
!video.state.loaded ?
|
||||||
<div className={styles['layer']}>
|
<div className={classnames(styles['layer'], styles['background-layer'])}>
|
||||||
<img src={player?.metaItem?.content?.background} />
|
<img className={styles['image']} src={player?.metaItem?.content?.background} />
|
||||||
</div>
|
</div>
|
||||||
:
|
:
|
||||||
null
|
null
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,14 @@ html:not(.active-slider-within) {
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.background-layer {
|
||||||
|
.image {
|
||||||
|
width: 100vw;
|
||||||
|
height: 100vh;
|
||||||
|
object-fit: cover;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&.nav-bar-layer {
|
&.nav-bar-layer {
|
||||||
bottom: initial;
|
bottom: initial;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue