feat: unify remote control into a Spotify-like media bar
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
- one bottom bar for local playback and remote devices, replacing the separate remote strip - minimal layout from the reference: cover/title/more, transport, seek times, queue/devices/volume/expand; extra actions in the overflow and device menus - selecting a device transfers playback (local<->remote) with position/queue - remote mode drives the session via playstate commands; local keeps shuffle/repeat/volume/queue
This commit is contained in:
1 parent
ffdedc7b9b
commit
a1af85dd72
6 files changed
+784
-279
No files matched your search
@@ -226,3 +226,201 @@ $art-size: 48px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Unified, minimal media bar (local playback + remote device control). */
|
||||
.audio-player {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: min(1440px, calc(100% - 1.5rem));
|
||||
height: 84px;
|
||||
gap: 1.25rem;
|
||||
padding: 0 4.5rem 0 0.9rem; // keep the last controls clear of the palm easter egg
|
||||
background: #0b0c12;
|
||||
border: 1px solid rgb(255 255 255 / 0.08);
|
||||
border-radius: 16px;
|
||||
|
||||
.media-bar {
|
||||
&-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
width: 30%;
|
||||
min-width: 220px;
|
||||
max-width: 360px;
|
||||
}
|
||||
|
||||
&-cover {
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
flex: 0 0 52px;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: 6px;
|
||||
overflow: hidden;
|
||||
background: rgb(255 255 255 / 0.06);
|
||||
color: rgb(255 255 255 / 0.5);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
&-info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
&-title {
|
||||
font-weight: 600 !important;
|
||||
line-height: 1.2 !important;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
cursor: pointer;
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
&-subtitle {
|
||||
opacity: 0.55;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
&-more {
|
||||
flex-shrink: 0;
|
||||
color: rgb(255 255 255 / 0.6);
|
||||
}
|
||||
|
||||
&-center {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1.25rem;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
&-controls {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.15rem;
|
||||
flex-shrink: 0;
|
||||
|
||||
.MuiIconButton-root {
|
||||
color: rgb(255 255 255 / 0.7);
|
||||
transition: color 0.15s ease, transform 0.15s ease;
|
||||
&:hover {
|
||||
color: #fff;
|
||||
background: rgb(255 255 255 / 0.06);
|
||||
}
|
||||
&.active {
|
||||
color: #7cc7ff;
|
||||
}
|
||||
.material-symbols-rounded {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-play {
|
||||
width: 42px !important;
|
||||
height: 42px !important;
|
||||
margin: 0 0.35rem;
|
||||
border: 1px solid rgb(255 255 255 / 0.35);
|
||||
color: #fff !important;
|
||||
.material-symbols-rounded {
|
||||
font-size: 1.6rem !important;
|
||||
}
|
||||
}
|
||||
|
||||
&-progress {
|
||||
flex: 1;
|
||||
min-width: 140px;
|
||||
|
||||
.MuiSlider-root {
|
||||
padding: 10px 0;
|
||||
color: #7cc7ff;
|
||||
}
|
||||
.MuiSlider-rail {
|
||||
background: rgb(255 255 255 / 0.16);
|
||||
opacity: 1;
|
||||
}
|
||||
.MuiSlider-track {
|
||||
border: 0;
|
||||
}
|
||||
.MuiSlider-thumb {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
background: #fff;
|
||||
box-shadow: none;
|
||||
&:hover,
|
||||
&.Mui-focusVisible {
|
||||
box-shadow: 0 0 0 6px rgb(124 199 255 / 0.16);
|
||||
}
|
||||
}
|
||||
.MuiTypography-root {
|
||||
opacity: 0.55;
|
||||
font-variant-numeric: tabular-nums;
|
||||
font-weight: 400;
|
||||
}
|
||||
}
|
||||
|
||||
&-right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.1rem;
|
||||
flex-shrink: 0;
|
||||
|
||||
.MuiIconButton-root {
|
||||
color: rgb(255 255 255 / 0.65);
|
||||
&:hover {
|
||||
color: #fff;
|
||||
background: rgb(255 255 255 / 0.06);
|
||||
}
|
||||
.material-symbols-rounded {
|
||||
font-size: 1.3rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-volume {
|
||||
width: 84px !important;
|
||||
margin: 0 0.35rem 0 0 !important;
|
||||
color: #7cc7ff !important;
|
||||
|
||||
.MuiSlider-rail {
|
||||
background: rgb(255 255 255 / 0.16);
|
||||
opacity: 1;
|
||||
}
|
||||
.MuiSlider-thumb {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
background: #fff;
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.audio-player {
|
||||
.media-bar-left {
|
||||
min-width: 160px;
|
||||
}
|
||||
.media-bar-volume,
|
||||
.media-bar-right .MuiSlider-root {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user