Add Hint About an Existing Setting to Enable External Players by Default

This commit is contained in:
Alexandru Branza 2023-05-31 10:46:18 +03:00
parent eb4ad0a759
commit e18d60e87c
2 changed files with 16 additions and 0 deletions

View file

@ -588,6 +588,12 @@ const Player = ({ urlParams, queryParams }) => {
error !== null ?
<div className={classnames(styles['layer'], styles['error-layer'])}>
<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 ?
<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'}>

View file

@ -54,6 +54,16 @@ html:not(.active-slider-within) {
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 {
flex: none;
display: flex;