Browse Source

Adjust button positions

master
jeffvli 3 years ago
parent
commit
2e30ca6424
  1. 62
      src/components/player/NowPlayingMiniView.tsx
  2. 62
      src/components/player/NowPlayingView.tsx

62
src/components/player/NowPlayingMiniView.tsx

@ -339,38 +339,36 @@ const NowPlayingMiniView = () => {
/> />
</StyledInputPickerContainer> </StyledInputPickerContainer>
<br /> <br />
<ButtonToolbar> <StyledButton
<StyledButton appearance="subtle"
appearance="subtle" onClick={() => handlePlayRandom('addNext')}
onClick={() => handlePlayRandom('addNext')} loading={isLoadingRandom}
loading={isLoadingRandom} disabled={!(typeof autoPlaylistTrackCount === 'number')}
disabled={!(typeof autoPlaylistTrackCount === 'number')} style={{ width: '50%' }}
> >
<Icon icon="plus-circle" style={{ marginRight: '10px' }} /> <Icon icon="plus-circle" style={{ marginRight: '10px' }} />
{t('Add (next)')} {t('Add (next)')}
</StyledButton> </StyledButton>
<StyledButton <StyledButton
appearance="subtle" appearance="subtle"
onClick={() => handlePlayRandom('addLater')} onClick={() => handlePlayRandom('addLater')}
loading={isLoadingRandom} loading={isLoadingRandom}
disabled={!(typeof autoPlaylistTrackCount === 'number')} disabled={!(typeof autoPlaylistTrackCount === 'number')}
> style={{ width: '50%' }}
<Icon icon="plus" style={{ marginRight: '10px' }} /> >
{t('Add (later)')} <Icon icon="plus" style={{ marginRight: '10px' }} />
</StyledButton> {t('Add (later)')}
</ButtonToolbar> </StyledButton>
<ButtonToolbar> <StyledButton
<StyledButton block
block appearance="primary"
appearance="primary" onClick={() => handlePlayRandom('play')}
onClick={() => handlePlayRandom('play')} loading={isLoadingRandom}
loading={isLoadingRandom} disabled={!(typeof autoPlaylistTrackCount === 'number')}
disabled={!(typeof autoPlaylistTrackCount === 'number')} >
> <Icon icon="play" style={{ marginRight: '10px' }} />
<Icon icon="play" style={{ marginRight: '10px' }} /> {t('Play')}
{t('Play')} </StyledButton>
</StyledButton>
</ButtonToolbar>
</Popup> </Popup>
} }
> >

62
src/components/player/NowPlayingView.tsx

@ -359,38 +359,36 @@ const NowPlayingView = () => {
/> />
</StyledInputPickerContainer> </StyledInputPickerContainer>
<br /> <br />
<ButtonToolbar> <StyledButton
<StyledButton appearance="subtle"
appearance="subtle" onClick={() => handlePlayRandom('addNext')}
onClick={() => handlePlayRandom('addNext')} loading={isLoadingRandom}
loading={isLoadingRandom} disabled={!(typeof autoPlaylistTrackCount === 'number')}
disabled={!(typeof autoPlaylistTrackCount === 'number')} style={{ width: '50%' }}
> >
<Icon icon="plus-circle" style={{ marginRight: '10px' }} /> <Icon icon="plus-circle" style={{ marginRight: '10px' }} />
{t('Add (next)')} {t('Add (next)')}
</StyledButton> </StyledButton>
<StyledButton <StyledButton
appearance="subtle" appearance="subtle"
onClick={() => handlePlayRandom('addLater')} onClick={() => handlePlayRandom('addLater')}
loading={isLoadingRandom} loading={isLoadingRandom}
disabled={!(typeof autoPlaylistTrackCount === 'number')} disabled={!(typeof autoPlaylistTrackCount === 'number')}
> style={{ width: '50%' }}
<Icon icon="plus" style={{ marginRight: '10px' }} /> >
{t('Add (later)')} <Icon icon="plus" style={{ marginRight: '10px' }} />
</StyledButton> {t('Add (later)')}
</ButtonToolbar> </StyledButton>
<ButtonToolbar> <StyledButton
<StyledButton block
block appearance="primary"
appearance="primary" onClick={() => handlePlayRandom('play')}
onClick={() => handlePlayRandom('play')} loading={isLoadingRandom}
loading={isLoadingRandom} disabled={!(typeof autoPlaylistTrackCount === 'number')}
disabled={!(typeof autoPlaylistTrackCount === 'number')} >
> <Icon icon="play" style={{ marginRight: '10px' }} />
<Icon icon="play" style={{ marginRight: '10px' }} /> {t('Play')}
{t('Play')} </StyledButton>
</StyledButton>
</ButtonToolbar>
</Popup> </Popup>
} }
> >

Loading…
Cancel
Save