mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 03:22:11 +00:00
Add Hint About an Existing Setting to Enable External Players by Default
This commit is contained in:
parent
eb4ad0a759
commit
e18d60e87c
2 changed files with 16 additions and 0 deletions
|
|
@ -588,6 +588,12 @@ const Player = ({ urlParams, queryParams }) => {
|
||||||
error !== null ?
|
error !== null ?
|
||||||
<div className={classnames(styles['layer'], styles['error-layer'])}>
|
<div className={classnames(styles['layer'], styles['error-layer'])}>
|
||||||
<div className={styles['error-label']} title={error.message}>{error.message}</div>
|
<div className={styles['error-label']} title={error.message}>{error.message}</div>
|
||||||
|
{
|
||||||
|
error.code === 2 ?
|
||||||
|
<div className={styles['error-sub']} title={t('EXTERNAL_PLAYER_HINT')}>{t('EXTERNAL_PLAYER_HINT')}</div>
|
||||||
|
:
|
||||||
|
null
|
||||||
|
}
|
||||||
{
|
{
|
||||||
player.selected !== null ?
|
player.selected !== null ?
|
||||||
<Button className={styles['playlist-button']} title={t('PLAYER_OPEN_IN_EXTERNAL')} href={player.selected.stream.deepLinks.externalPlayer.href} download={player.selected.stream.deepLinks.externalPlayer.fileName} target={'_blank'}>
|
<Button className={styles['playlist-button']} title={t('PLAYER_OPEN_IN_EXTERNAL')} href={player.selected.stream.deepLinks.externalPlayer.href} download={player.selected.stream.deepLinks.externalPlayer.fileName} target={'_blank'}>
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,16 @@ html:not(.active-slider-within) {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.error-sub {
|
||||||
|
flex: 0 1 auto;
|
||||||
|
padding: 0 2rem;
|
||||||
|
max-height: 4.8em;
|
||||||
|
font-size: 1.3rem;
|
||||||
|
margin-top: 0.8rem;
|
||||||
|
color: @color-surface-light5-90;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
.playlist-button {
|
.playlist-button {
|
||||||
flex: none;
|
flex: none;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue