mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-01-11 22:40:31 +00:00
Use Font Icon Instead of PNG
This commit is contained in:
parent
3e43f04919
commit
20616038ce
3 changed files with 4 additions and 6 deletions
Binary file not shown.
|
Before Width: | Height: | Size: 20 KiB |
|
|
@ -5,6 +5,7 @@ const PropTypes = require('prop-types');
|
|||
const classnames = require('classnames');
|
||||
const { useServices } = require('stremio/services');
|
||||
const { useRouteFocused } = require('stremio-router');
|
||||
const Icon = require('@stremio/stremio-icons/dom');
|
||||
const { Button, Image, Popup, useBinaryState } = require('stremio/common');
|
||||
const VideoPlaceholder = require('./VideoPlaceholder');
|
||||
const styles = require('./styles');
|
||||
|
|
@ -68,9 +69,9 @@ const Video = ({ className, id, title, thumbnail, episode, released, upcoming, w
|
|||
src={thumbnail}
|
||||
alt={' '}
|
||||
renderFallback={() => (
|
||||
<img
|
||||
<Icon
|
||||
className={styles['placeholder-icon']}
|
||||
src={require('/images/stremio_dock_white.png')}
|
||||
icon={'ic_stremio_tray'}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -38,10 +38,7 @@
|
|||
width: 7.5rem;
|
||||
height: 5rem;
|
||||
padding: 1rem;
|
||||
-o-object-fit: contain;
|
||||
object-fit: contain;
|
||||
-o-object-position: center;
|
||||
object-position: center;
|
||||
fill: white;
|
||||
opacity: 0.25;
|
||||
background-color: rgba(255,255,255,0.4);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue