Move the stop button beside the forward controls
It follows Forward 10 seconds (or Next episode), with a matching spacer on the other side so play/pause stays centred. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
624f01f745
commit
0d423eb708
2 changed files with 8 additions and 2 deletions
|
|
@ -1025,6 +1025,8 @@ export function PlayerOverlay() {
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="player-controls-center">
|
<div className="player-controls-center">
|
||||||
|
{/* Balances Stop on the other side, so play/pause stays centred. */}
|
||||||
|
<span className="player-icon-spacer" aria-hidden="true" />
|
||||||
{/* Both episode buttons stay for episodes (dimmed at either end) so play/pause holds its place. */}
|
{/* Both episode buttons stay for episodes (dimmed at either end) so play/pause holds its place. */}
|
||||||
{item.type === 'episode' && (
|
{item.type === 'episode' && (
|
||||||
<button
|
<button
|
||||||
|
|
@ -1057,11 +1059,11 @@ export function PlayerOverlay() {
|
||||||
<Icon name="skipNext" size={22} />
|
<Icon name="skipNext" size={22} />
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
</div>
|
|
||||||
<div className="player-controls-right">
|
|
||||||
<button className="player-icon" aria-label="Stop playback" title="Stop" onClick={() => st.close()}>
|
<button className="player-icon" aria-label="Stop playback" title="Stop" onClick={() => st.close()}>
|
||||||
<Icon name="stop" size={19} />
|
<Icon name="stop" size={19} />
|
||||||
</button>
|
</button>
|
||||||
|
</div>
|
||||||
|
<div className="player-controls-right">
|
||||||
<button className={`player-icon${panel === 'tracks' ? ' on' : ''}${st.subKey ? ' lit' : ''}`} aria-label="Audio and subtitles" onClick={() => setPanel(panel === 'tracks' ? '' : 'tracks')}>
|
<button className={`player-icon${panel === 'tracks' ? ' on' : ''}${st.subKey ? ' lit' : ''}`} aria-label="Audio and subtitles" onClick={() => setPanel(panel === 'tracks' ? '' : 'tracks')}>
|
||||||
<Icon name="captions" size={23} />
|
<Icon name="captions" size={23} />
|
||||||
</button>
|
</button>
|
||||||
|
|
|
||||||
|
|
@ -350,6 +350,10 @@ html.os-macos:not(.window-fullscreen) .player-top {
|
||||||
.player-controls-center {
|
.player-controls-center {
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
}
|
}
|
||||||
|
.player-icon-spacer {
|
||||||
|
width: 44px;
|
||||||
|
height: 44px;
|
||||||
|
}
|
||||||
.player-icon:disabled {
|
.player-icon:disabled {
|
||||||
opacity: 0.32;
|
opacity: 0.32;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue