feat(music): redesign the music section around the player
- album, playlist and artist pages share one layout: sleeve with a record edge, large title, metadata, full-width track list and an about block - full-screen player: wall colour from the cover's blurhash, large sleeve, transport at the bottom, queue sliding out from under the cover - queue rows show current/upcoming tracks with covers, hearts and durations; lyrics open in the same panel - bottom bar follows: floating capsule, white play button and accent progress - artist page rebuilt with a round portrait, tabs and an album grid - music library gets a calmer grid and an aligned alphabet rail
This commit is contained in:
1 parent
fcf61012db
commit
9f314582c0
13 files changed
+2105
-1505
No files matched your search
+394
-145
@@ -7,24 +7,23 @@ import {
|
||||
ListItemIcon,
|
||||
Menu,
|
||||
MenuItem,
|
||||
Slider,
|
||||
Tooltip,
|
||||
Typography,
|
||||
} from "@mui/material";
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
import { createFileRoute, Link, useNavigate } from "@tanstack/react-router";
|
||||
import { AnimatePresence, motion } from "motion/react";
|
||||
import React, { useEffect, useMemo, useState } from "react";
|
||||
import CastButton from "@/components/buttons/castButton";
|
||||
import InstantMixButton from "@/components/buttons/instantMixButton";
|
||||
import LikeButton from "@/components/buttons/likeButton";
|
||||
import LyricsPanel, {
|
||||
getLyricsQueryOptions,
|
||||
} from "@/components/playback/audioPlayer/components/LyricsPanel";
|
||||
import PlayerControls from "@/components/playback/audioPlayer/components/PlayerControls";
|
||||
import PlayerProgress from "@/components/playback/audioPlayer/components/PlayerProgress";
|
||||
import PlayerVolume from "@/components/playback/audioPlayer/components/PlayerVolume";
|
||||
import StatsPanel from "@/components/playback/audioPlayer/components/StatsPanel";
|
||||
import QueueView from "@/components/queue/queueView";
|
||||
import { secToTicks, ticksToSec } from "@/utils/date/time";
|
||||
import WindowControls from "@/components/windowControls";
|
||||
import { getRuntimeMusic, secToTicks, ticksToSec } from "@/utils/date/time";
|
||||
import { getCoverPalette } from "@/utils/methods/coverColor";
|
||||
import getImageUrlsApi from "@/utils/methods/getImageUrlsApi";
|
||||
import { getItemQueryOptions } from "@/utils/queries/items";
|
||||
import { useApiInContext } from "@/utils/store/api";
|
||||
@@ -34,6 +33,7 @@ import {
|
||||
useAudioPlayback,
|
||||
} from "@/utils/store/audioPlayback";
|
||||
import { useCentralStore } from "@/utils/store/central";
|
||||
import { playItemFromQueue } from "@/utils/store/playback";
|
||||
import useQueue, {
|
||||
cycleRepeatMode,
|
||||
type RepeatMode,
|
||||
@@ -52,44 +52,76 @@ const repeatLabels: Record<RepeatMode, string> = {
|
||||
one: "Повтор одного",
|
||||
};
|
||||
|
||||
/** Artists (linked) and album (linked) for the current track. */
|
||||
const TrackSubtitle = ({ item }: { item: BaseItemDto }) => {
|
||||
const artists = item.ArtistItems?.length
|
||||
? item.ArtistItems
|
||||
: (item.AlbumArtists ?? []);
|
||||
return (
|
||||
<Typography
|
||||
variant="subtitle1"
|
||||
className="audio-now-playing-subtitle"
|
||||
noWrap
|
||||
>
|
||||
{artists.map((artist, index) => (
|
||||
<React.Fragment key={artist.Id ?? artist.Name}>
|
||||
{index > 0 && ", "}
|
||||
{artist.Id ? (
|
||||
<Link to="/music/artist/$id" params={{ id: artist.Id }}>
|
||||
{artist.Name}
|
||||
</Link>
|
||||
) : (
|
||||
artist.Name
|
||||
)}
|
||||
</React.Fragment>
|
||||
))}
|
||||
{item.Album && (
|
||||
<>
|
||||
{artists.length > 0 && " · "}
|
||||
{item.AlbumId ? (
|
||||
<Link to="/music/album/$id" params={{ id: item.AlbumId }}>
|
||||
{item.Album}
|
||||
</Link>
|
||||
) : (
|
||||
item.Album
|
||||
)}
|
||||
</>
|
||||
const QueueRow = ({
|
||||
item,
|
||||
index,
|
||||
isCurrent,
|
||||
coverUrl,
|
||||
onPlay,
|
||||
queryKey,
|
||||
userId,
|
||||
}: {
|
||||
item: BaseItemDto;
|
||||
index: number;
|
||||
isCurrent: boolean;
|
||||
coverUrl?: string;
|
||||
onPlay: (index: number) => void;
|
||||
queryKey: string[];
|
||||
userId?: string;
|
||||
}) => (
|
||||
// biome-ignore lint/a11y/useSemanticElements: the row contains its own like button
|
||||
<div
|
||||
className={`music-player-queue-row${isCurrent ? " is-current" : ""}`}
|
||||
onClick={() => {
|
||||
if (!isCurrent) onPlay(index);
|
||||
}}
|
||||
onKeyDown={(event) => {
|
||||
if (isCurrent) return;
|
||||
if (event.key === "Enter" || event.key === " ") {
|
||||
event.preventDefault();
|
||||
onPlay(index);
|
||||
}
|
||||
}}
|
||||
role="button"
|
||||
tabIndex={0}
|
||||
>
|
||||
<span className="music-player-queue-cover">
|
||||
{coverUrl ? (
|
||||
<img src={coverUrl} alt="" />
|
||||
) : (
|
||||
<span className="material-symbols-rounded">music_note</span>
|
||||
)}
|
||||
</Typography>
|
||||
);
|
||||
};
|
||||
{isCurrent && (
|
||||
<span className="music-player-queue-playing">
|
||||
<span className="material-symbols-rounded">play_arrow</span>
|
||||
</span>
|
||||
)}
|
||||
</span>
|
||||
<span className="music-player-queue-text">
|
||||
<span className="music-player-queue-title">{item.Name}</span>
|
||||
<span className="music-player-queue-artist">
|
||||
{item.Artists?.join(", ") ?? item.AlbumArtist ?? item.Album}
|
||||
</span>
|
||||
</span>
|
||||
<span
|
||||
className="music-player-queue-like"
|
||||
onClick={(event) => event.stopPropagation()}
|
||||
onKeyDown={(event) => event.stopPropagation()}
|
||||
role="presentation"
|
||||
>
|
||||
<LikeButton
|
||||
itemId={item.Id}
|
||||
itemName={item.Name}
|
||||
isFavorite={item.UserData?.IsFavorite}
|
||||
queryKey={queryKey}
|
||||
userId={userId}
|
||||
/>
|
||||
</span>
|
||||
<span className="music-player-queue-time">
|
||||
{getRuntimeMusic(item.RunTimeTicks ?? 0)}
|
||||
</span>
|
||||
</div>
|
||||
);
|
||||
|
||||
function AudioPlayerRoute() {
|
||||
const api = useApiInContext((s) => s.api);
|
||||
@@ -109,6 +141,8 @@ function AudioPlayerRoute() {
|
||||
|
||||
const [progress, setProgress] = useState(0);
|
||||
const [playing, setPlaying] = useState(false);
|
||||
const [panelOpen, setPanelOpen] = useState(false);
|
||||
const [panelTab, setPanelTab] = useState<"queue" | "lyrics">("queue");
|
||||
const [menuAnchor, setMenuAnchor] = useState<HTMLElement | null>(null);
|
||||
const [statsOpen, setStatsOpen] = useState(false);
|
||||
|
||||
@@ -141,6 +175,9 @@ function AudioPlayerRoute() {
|
||||
const lyrics = useQuery(getLyricsQueryOptions(item, api));
|
||||
const hasLyrics = (lyrics.data?.Lyrics?.length ?? 0) > 0;
|
||||
|
||||
// Wall colour derived from the sleeve.
|
||||
const palette = useMemo(() => getCoverPalette(item), [item]);
|
||||
|
||||
const handlePlayPause = () => {
|
||||
const player = audioPlayerRef?.current;
|
||||
if (!player) return;
|
||||
@@ -170,52 +207,235 @@ function AudioPlayerRoute() {
|
||||
[item?.Id, item?.ImageTags?.Primary, api],
|
||||
);
|
||||
|
||||
const coverFor = (track: BaseItemDto) =>
|
||||
api && track.ImageTags?.Primary
|
||||
? getImageUrlsApi(api).getItemImageUrlById(
|
||||
track.AlbumId ?? track.Id ?? "",
|
||||
"Primary",
|
||||
{ quality: 70, fillHeight: 96, fillWidth: 96 },
|
||||
)
|
||||
: undefined;
|
||||
|
||||
const hasUpcoming = (queue?.length ?? 0) > currentTrack + 1;
|
||||
const isFavorite =
|
||||
itemDetails.data?.UserData?.IsFavorite ?? item?.UserData?.IsFavorite;
|
||||
const artistId = item?.ArtistItems?.[0]?.Id ?? item?.AlbumArtists?.[0]?.Id;
|
||||
const tracks = queue ?? [];
|
||||
const current = tracks[currentTrack];
|
||||
const upcoming = tracks.slice(currentTrack + 1);
|
||||
|
||||
const openPanel = (tab: "queue" | "lyrics") => {
|
||||
if (panelOpen && panelTab === tab) {
|
||||
setPanelOpen(false);
|
||||
return;
|
||||
}
|
||||
setPanelTab(tab);
|
||||
setPanelOpen(true);
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="audio-background">
|
||||
{imageUrl && (
|
||||
<img src={imageUrl} alt="" className="audio-background-image" />
|
||||
)}
|
||||
</div>
|
||||
<div className="audio-container">
|
||||
<section className="audio-now-playing" key={item?.Id}>
|
||||
<div className="audio-now-playing-art">
|
||||
{imageUrl ? (
|
||||
<img alt={item?.Name ?? "Обложка"} src={imageUrl} />
|
||||
) : (
|
||||
<span className="material-symbols-rounded">music_note</span>
|
||||
)}
|
||||
<div
|
||||
className={`music-player${panelOpen ? " has-panel" : ""}`}
|
||||
style={
|
||||
{
|
||||
"--mp-base": palette.base,
|
||||
"--mp-deep": palette.deep,
|
||||
} as React.CSSProperties
|
||||
}
|
||||
>
|
||||
<header className="music-player-chrome" data-tauri-drag-region>
|
||||
<div className="music-player-chrome-end">
|
||||
<WindowControls />
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<Tooltip title="Свернуть плеер">
|
||||
<button
|
||||
type="button"
|
||||
className="music-player-collapse"
|
||||
onClick={() => window.history.back()}
|
||||
aria-label="Свернуть плеер"
|
||||
>
|
||||
<span className="material-symbols-rounded">expand_more</span>
|
||||
</button>
|
||||
</Tooltip>
|
||||
|
||||
<div className="music-player-stage">
|
||||
<div className="music-player-row">
|
||||
<div className="music-player-main">
|
||||
<motion.div
|
||||
key={item?.Id}
|
||||
className="music-player-art"
|
||||
initial={{ opacity: 0, scale: 0.98 }}
|
||||
animate={{ opacity: 1, scale: 1 }}
|
||||
transition={{ duration: 0.3, ease: "easeOut" }}
|
||||
>
|
||||
{imageUrl ? (
|
||||
<img alt={item?.Name ?? "Обложка"} src={imageUrl} />
|
||||
) : (
|
||||
<span className="material-symbols-rounded">music_note</span>
|
||||
)}
|
||||
</motion.div>
|
||||
|
||||
<div className="music-player-meta">
|
||||
<h1 className="music-player-title">{item?.Name}</h1>
|
||||
<div className="music-player-subtitle">
|
||||
{item?.ArtistItems?.length
|
||||
? item.ArtistItems.map((artist, index) => (
|
||||
<React.Fragment key={artist.Id ?? artist.Name}>
|
||||
{index > 0 && ", "}
|
||||
{artist.Id ? (
|
||||
<Link
|
||||
to="/music/artist/$id"
|
||||
params={{ id: artist.Id }}
|
||||
>
|
||||
{artist.Name}
|
||||
</Link>
|
||||
) : (
|
||||
artist.Name
|
||||
)}
|
||||
</React.Fragment>
|
||||
))
|
||||
: item?.Artists?.join(", ")}
|
||||
{item?.Album && (
|
||||
<>
|
||||
{(item?.ArtistItems?.length || item?.Artists?.length) &&
|
||||
" · "}
|
||||
{item.AlbumId ? (
|
||||
<Link
|
||||
to="/music/album/$id"
|
||||
params={{ id: item.AlbumId }}
|
||||
>
|
||||
{item.Album}
|
||||
</Link>
|
||||
) : (
|
||||
item.Album
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className="music-player-seek">
|
||||
<Slider
|
||||
value={Math.min(
|
||||
secToTicks(progress),
|
||||
item?.RunTimeTicks ?? 0,
|
||||
)}
|
||||
max={item?.RunTimeTicks ?? 1}
|
||||
step={1}
|
||||
size="small"
|
||||
aria-label="Перемотка"
|
||||
onChange={(_, value) => {
|
||||
const next = Array.isArray(value) ? value[0] : value;
|
||||
setProgress(ticksToSec(next));
|
||||
}}
|
||||
onChangeCommitted={(_, value) => {
|
||||
const next = Array.isArray(value) ? value[0] : value;
|
||||
handleSeekCommit(next);
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="audio-now-playing-meta">
|
||||
<div className="audio-now-playing-text">
|
||||
<Typography
|
||||
variant="h5"
|
||||
sx={{
|
||||
fontWeight: 700,
|
||||
lineHeight: 1.2,
|
||||
overflowWrap: "anywhere",
|
||||
}}
|
||||
<AnimatePresence initial={false}>
|
||||
{panelOpen && (
|
||||
<motion.aside
|
||||
key="panel"
|
||||
className="music-player-panel"
|
||||
initial={{ x: -240, opacity: 0 }}
|
||||
animate={{ x: 0, opacity: 1 }}
|
||||
exit={{ x: -240, opacity: 0 }}
|
||||
transition={{ duration: 0.32, ease: [0.2, 0, 0, 1] }}
|
||||
>
|
||||
{item?.Name}
|
||||
</Typography>
|
||||
{item && <TrackSubtitle item={item} />}
|
||||
</div>
|
||||
{item && <InstantMixButton item={item} />}
|
||||
{item && <CastButton
|
||||
item={item}
|
||||
transfer={{
|
||||
kind: "audio",
|
||||
positionTicks: secToTicks(progress),
|
||||
queue: queue ?? [],
|
||||
startIndex: currentTrack,
|
||||
}}
|
||||
/>}
|
||||
<div className="music-player-panel-inner">
|
||||
{panelTab === "lyrics" ? (
|
||||
<>
|
||||
<div className="music-player-panel-head">
|
||||
<span className="music-player-panel-source">
|
||||
Текст песни
|
||||
</span>
|
||||
<IconButton
|
||||
size="small"
|
||||
aria-label="Показать очередь"
|
||||
onClick={() => setPanelTab("queue")}
|
||||
>
|
||||
<span className="material-symbols-rounded">close</span>
|
||||
</IconButton>
|
||||
</div>
|
||||
<div className="music-player-panel-body music-player-panel-lyrics">
|
||||
{hasLyrics ? (
|
||||
<LyricsPanel
|
||||
item={item}
|
||||
api={api}
|
||||
currentTime={progress}
|
||||
onSeek={handleSeekCommit}
|
||||
/>
|
||||
) : (
|
||||
<p className="music-player-panel-empty">
|
||||
Для этого трека нет текста.
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
</>
|
||||
) : (
|
||||
<div className="music-player-panel-body">
|
||||
<div className="music-player-panel-source">
|
||||
Сейчас играет из{" "}
|
||||
{item?.Album ? "альбома" : "очереди"}
|
||||
</div>
|
||||
<h2 className="music-player-panel-title">
|
||||
{item?.Album ?? "Очередь"}
|
||||
</h2>
|
||||
{current && (
|
||||
<QueueRow
|
||||
item={current}
|
||||
index={currentTrack}
|
||||
isCurrent
|
||||
coverUrl={coverFor(current)}
|
||||
onPlay={() => undefined}
|
||||
queryKey={["queue-current"]}
|
||||
userId={user?.Id}
|
||||
/>
|
||||
)}
|
||||
<div className="music-player-panel-label">
|
||||
Далее в очереди
|
||||
</div>
|
||||
{upcoming.length === 0 ? (
|
||||
<p className="music-player-panel-empty">
|
||||
Очередь пуста. Запустите альбом или плейлист,
|
||||
чтобы она наполнилась.
|
||||
</p>
|
||||
) : (
|
||||
<div className="music-player-queue-list">
|
||||
{upcoming.map((track, offset) => (
|
||||
<QueueRow
|
||||
key={track.Id}
|
||||
item={track}
|
||||
index={currentTrack + 1 + offset}
|
||||
isCurrent={false}
|
||||
coverUrl={coverFor(track)}
|
||||
onPlay={(index) =>
|
||||
playItemFromQueue(index, user?.Id, api)
|
||||
}
|
||||
queryKey={["queue-upcoming"]}
|
||||
userId={user?.Id}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</motion.aside>
|
||||
)}
|
||||
</AnimatePresence>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<footer className="music-player-controls">
|
||||
<div className="music-player-controls-side">
|
||||
<LikeButton
|
||||
itemId={item?.Id ?? undefined}
|
||||
itemName={item?.Name}
|
||||
@@ -223,58 +443,21 @@ function AudioPlayerRoute() {
|
||||
queryKey={["item", item?.Id ?? ""]}
|
||||
userId={user?.Id}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<PlayerProgress
|
||||
layout="stacked"
|
||||
progress={secToTicks(progress)}
|
||||
duration={item?.RunTimeTicks ?? 1}
|
||||
onSeek={(value) => setProgress(ticksToSec(value))}
|
||||
onSeekCommit={handleSeekCommit}
|
||||
/>
|
||||
|
||||
<div className="audio-now-playing-transport">
|
||||
<Tooltip title="Перемешать следующие">
|
||||
<span>
|
||||
<IconButton
|
||||
onClick={shuffleUpcoming}
|
||||
disabled={!hasUpcoming}
|
||||
aria-label="Перемешать следующие"
|
||||
>
|
||||
<span className="material-symbols-rounded">shuffle</span>
|
||||
</IconButton>
|
||||
</span>
|
||||
</Tooltip>
|
||||
<PlayerControls
|
||||
playing={playing}
|
||||
onPlayPause={handlePlayPause}
|
||||
size="large"
|
||||
/>
|
||||
<Tooltip title={repeatLabels[repeatMode]}>
|
||||
<IconButton
|
||||
onClick={cycleRepeatMode}
|
||||
aria-label={repeatLabels[repeatMode]}
|
||||
className={repeatMode !== "off" ? "is-active" : undefined}
|
||||
>
|
||||
<span className="material-symbols-rounded">
|
||||
{repeatMode === "one" ? "repeat_one" : "repeat"}
|
||||
</span>
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
</div>
|
||||
|
||||
<div className="audio-now-playing-utility">
|
||||
<div className="audio-now-playing-volume">
|
||||
<PlayerVolume
|
||||
volume={volume}
|
||||
isMuted={isMuted}
|
||||
onVolumeChange={setVolume}
|
||||
onMuteToggle={() => setIsMuted(!isMuted)}
|
||||
{item && (
|
||||
<CastButton
|
||||
item={item}
|
||||
transfer={{
|
||||
kind: "audio",
|
||||
positionTicks: secToTicks(progress),
|
||||
queue: queue ?? [],
|
||||
startIndex: currentTrack,
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
<IconButton
|
||||
onClick={(e) => setMenuAnchor(e.currentTarget)}
|
||||
aria-label="Ещё"
|
||||
title="Ещё"
|
||||
>
|
||||
<span className="material-symbols-rounded">more_horiz</span>
|
||||
</IconButton>
|
||||
@@ -282,8 +465,8 @@ function AudioPlayerRoute() {
|
||||
anchorEl={menuAnchor}
|
||||
open={Boolean(menuAnchor)}
|
||||
onClose={() => setMenuAnchor(null)}
|
||||
anchorOrigin={{ vertical: "top", horizontal: "right" }}
|
||||
transformOrigin={{ vertical: "bottom", horizontal: "right" }}
|
||||
anchorOrigin={{ vertical: "top", horizontal: "left" }}
|
||||
transformOrigin={{ vertical: "bottom", horizontal: "left" }}
|
||||
>
|
||||
<MenuItem
|
||||
disabled={!item?.AlbumId}
|
||||
@@ -332,26 +515,92 @@ function AudioPlayerRoute() {
|
||||
</MenuItem>
|
||||
</Menu>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<aside
|
||||
className={`audio-side ${hasLyrics ? "has-lyrics" : ""}`}
|
||||
aria-label="Текст и очередь"
|
||||
>
|
||||
{hasLyrics && (
|
||||
<div className="audio-side-lyrics">
|
||||
<LyricsPanel
|
||||
item={item}
|
||||
api={api}
|
||||
currentTime={progress}
|
||||
onSeek={handleSeekCommit}
|
||||
<div className="music-player-transport">
|
||||
<Tooltip title="Перемешать следующие">
|
||||
<span>
|
||||
<IconButton
|
||||
onClick={shuffleUpcoming}
|
||||
disabled={!hasUpcoming}
|
||||
aria-label="Перемешать следующие"
|
||||
>
|
||||
<span className="material-symbols-rounded">shuffle</span>
|
||||
</IconButton>
|
||||
</span>
|
||||
</Tooltip>
|
||||
<IconButton
|
||||
onClick={() => playItemFromQueue("previous", user?.Id, api)}
|
||||
aria-label="Предыдущий"
|
||||
title="Предыдущий"
|
||||
>
|
||||
<span className="material-symbols-rounded">skip_previous</span>
|
||||
</IconButton>
|
||||
<button
|
||||
type="button"
|
||||
className="music-player-play"
|
||||
onClick={handlePlayPause}
|
||||
aria-label={playing ? "Пауза" : "Играть"}
|
||||
>
|
||||
<span className="material-symbols-rounded">
|
||||
{playing ? "pause" : "play_arrow"}
|
||||
</span>
|
||||
</button>
|
||||
<IconButton
|
||||
onClick={() => playItemFromQueue("next", user?.Id, api)}
|
||||
aria-label="Следующий"
|
||||
title="Следующий"
|
||||
>
|
||||
<span className="material-symbols-rounded">skip_next</span>
|
||||
</IconButton>
|
||||
<Tooltip title={repeatLabels[repeatMode]}>
|
||||
<IconButton
|
||||
onClick={cycleRepeatMode}
|
||||
aria-label={repeatLabels[repeatMode]}
|
||||
className={repeatMode !== "off" ? "is-active" : undefined}
|
||||
>
|
||||
<span className="material-symbols-rounded">
|
||||
{repeatMode === "one" ? "repeat_one" : "repeat"}
|
||||
</span>
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
</div>
|
||||
|
||||
<div className="music-player-controls-side is-end">
|
||||
<div className="music-player-volume">
|
||||
<PlayerVolume
|
||||
volume={volume}
|
||||
isMuted={isMuted}
|
||||
onVolumeChange={setVolume}
|
||||
onMuteToggle={() => setIsMuted(!isMuted)}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
<div className="audio-side-queue">
|
||||
<QueueView variant="panel" />
|
||||
<Tooltip title="Текст песни">
|
||||
<span>
|
||||
<IconButton
|
||||
onClick={() => openPanel("lyrics")}
|
||||
aria-label="Текст песни"
|
||||
className={
|
||||
panelOpen && panelTab === "lyrics" ? "is-active" : undefined
|
||||
}
|
||||
disabled={!hasLyrics}
|
||||
>
|
||||
<span className="material-symbols-rounded">lyrics</span>
|
||||
</IconButton>
|
||||
</span>
|
||||
</Tooltip>
|
||||
<Tooltip title="Очередь">
|
||||
<IconButton
|
||||
onClick={() => openPanel("queue")}
|
||||
aria-label="Очередь"
|
||||
className={
|
||||
panelOpen && panelTab === "queue" ? "is-active" : undefined
|
||||
}
|
||||
>
|
||||
<span className="material-symbols-rounded">queue_music</span>
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
</div>
|
||||
</aside>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<Dialog
|
||||
|
||||
Reference in new issue
Block a user