refactor(miniplayer): tighten compact spacing and simplify play button

cx
This commit is contained in:
vicrodh committed 2026-02-26 01:54:11 -06:00
1 parent d6b0e0f5ea
commit 1ba6fe13d5
3 files changed
+3 -35

No files matched your search

@@ -28,7 +28,7 @@
display: flex; display: flex;
align-items: center; align-items: center;
gap: 10px; gap: 10px;
padding: 7px 12px 6px; padding: 12px;
min-height: 0; min-height: 0;
flex: 1 1 auto; flex: 1 1 auto;
overflow: hidden; overflow: hidden;
@@ -269,7 +269,7 @@
</button> </button>
<button <button
class="ctrl-btn play" class="ctrl-btn"
onclick={onTogglePlay} onclick={onTogglePlay}
title={isPlaying ? $t('player.pause') : $t('player.play')} title={isPlaying ? $t('player.pause') : $t('player.play')}
aria-label={isPlaying ? $t('player.pause') : $t('player.play')} aria-label={isPlaying ? $t('player.pause') : $t('player.play')}
@@ -534,19 +534,6 @@
color: var(--accent-primary); color: var(--accent-primary);
} }
.ctrl-btn.play {
width: 40px;
height: 40px;
background: var(--accent-primary);
color: var(--btn-primary-text, #ffffff);
box-shadow: 0 4px 14px color-mix(in srgb, var(--accent-primary) 38%, transparent);
}
.ctrl-btn.play:hover {
background: color-mix(in srgb, var(--accent-primary) 88%, white);
transform: scale(1.04);
}
.ctrl-btn :global(.play-icon) { .ctrl-btn :global(.play-icon) {
margin-left: 2px; margin-left: 2px;
} }
@@ -658,11 +645,6 @@
height: 26px; height: 26px;
} }
.footer.compact .ctrl-btn.play {
width: 34px;
height: 34px;
}
.footer.compact .volume-trigger { .footer.compact .volume-trigger {
width: 26px; width: 26px;
height: 26px; height: 26px;
@@ -682,20 +664,6 @@
height: 16px; height: 16px;
} }
.footer.micro .ctrl-btn.play {
width: 16px;
height: 16px;
background: transparent;
color: var(--alpha-70);
box-shadow: none;
}
.footer.micro .ctrl-btn.play:hover {
background: var(--alpha-8);
color: var(--text-primary);
transform: none;
}
.footer.micro .ctrl-btn :global(.play-icon) { .footer.micro .ctrl-btn :global(.play-icon) {
margin-left: 0; margin-left: 0;
} }
+1 -1
View File
@@ -62,7 +62,7 @@
const COMPACT_GEOMETRY = { const COMPACT_GEOMETRY = {
width: 380, width: 380,
height: 194 height: 178
}; };
const MICRO_GEOMETRY = { const MICRO_GEOMETRY = {