From 51ff98eff18d33ea3641c9b1efc6da97206965f6 Mon Sep 17 00:00:00 2001 From: DiheChen Date: Sat, 7 Nov 2026 07:54:17 +0800 Subject: [PATCH] feat: widen the player bar to the page panels and enlarge its buttons --- web/src/app/style.css | 2 +- web/src/features/playback/playback.css | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/web/src/app/style.css b/web/src/app/style.css index e554439..b59f8ad 100644 --- a/web/src/app/style.css +++ b/web/src/app/style.css @@ -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) { diff --git a/web/src/features/playback/playback.css b/web/src/features/playback/playback.css index 2c25cb1..63f5dc8 100644 --- a/web/src/features/playback/playback.css +++ b/web/src/features/playback/playback.css @@ -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; }