diff --git a/src/renderer/components/AstraScopeModule.tsx b/src/renderer/components/AstraScopeModule.tsx index 95cfb96..c3457f8 100644 --- a/src/renderer/components/AstraScopeModule.tsx +++ b/src/renderer/components/AstraScopeModule.tsx @@ -298,9 +298,19 @@ export default function AstraScopeModule({ const toggleCommand = snapshot?.playbackState === 'playing' ? 'pause' : 'play' const toggleLabel = snapshot?.playbackState === 'playing' ? 'Pause' : 'Play' - const cardClassName = settings.showCoverArt - ? 'astra-scope__card' - : 'astra-scope__card astra-scope__card--no-cover' + const toggleIcon = snapshot?.playbackState === 'playing' ? '\u23F8' : '\u25B6' + const shouldShowMeta = settings.showTitle || (settings.showArtist && Boolean(detailMessage)) + const shouldShowTransport = settings.showProgress || settings.showTime + const shouldShowBody = shouldShowMeta + || shouldShowTransport + || settings.showControls + || Boolean(errorMessage) + const isCoverArtOnly = settings.showCoverArt && !shouldShowBody + const cardClassName = [ + 'astra-scope__card', + !settings.showCoverArt ? 'astra-scope__card--no-cover' : '', + isCoverArtOnly ? 'astra-scope__card--cover-only' : '', + ].filter(Boolean).join(' ') return (