feat: widen the player bar to the page panels and enlarge its buttons

This commit is contained in:
DiheChen committed 2026-11-07 07:54:17 +08:00
1 parent f5008b8d8e
commit 51ff98eff1
2 files changed
+5 -2

No files matched your search

+1 -1
View File
@@ -137,7 +137,7 @@
:root { --detail-panel-width: 420px; }
}
@media (min-width: 768px) {
.app-shell > .player-bar { justify-self: center; margin-bottom: 12px; }
.app-shell > .player-bar { margin: 0 8px 8px; }
}
/* 通知相对窗口居中,侧栏打开时移到内容区中间,否则会盖住侧栏。窗口太窄时内容区放不下通知,留在原位。 */
@media (min-width: 1024px) {
+4 -1
View File
@@ -23,8 +23,11 @@
.player-panel-toggle:active:not(:disabled) { color: var(--color-brand); background: transparent; transform: none; }
/* 播放栏在布局里占一行,不压在页面上,所以各页面不用留出底部空间。 */
@media (min-width: 768px) {
.player-bar { --color-hover: var(--color-surface-hover); width: min(920px, calc(100% - 16px)); padding: 10px 14px; border-radius: 16px; background: var(--color-panel); box-shadow: 0 8px 24px var(--color-shadow); }
.player-bar { --color-hover: var(--color-surface-hover); padding: 10px 14px; border-radius: 12px; background: var(--color-panel); }
.player-artwork .artwork { width: 56px; background: var(--color-surface); }
.player-right .icon-button { width: 40px; height: 40px; }
.player-right .icon-button svg { width: 22px; height: 22px; }
.player-center .icon-button svg { width: 24px; height: 24px; }
}
@media (max-width: 1100px) {
.player-bar { gap: 12px; }