fix(ui): unify titlebar and playback state
- window buttons live in the page header on library/search pages and in a shared chrome strip where a page has no header; removed the 44px root padding toggle that made pages jump on navigation - video player gets its own titlebar row with window controls; the audio player hides the global app bar - starting a video stops music and vice versa; a single track queues the rest of its album, or the artist's songs when AlbumId is missing - album page no longer crashes on albums without AlbumArtists - queue summary is localized
This commit is contained in:
1 parent
d9bce4de04
commit
fcf61012db
13 files changed
+245
-171
No files matched your search
@@ -132,9 +132,19 @@ const QueueView = ({ variant, onClose }: QueueViewProps) => {
|
||||
]);
|
||||
};
|
||||
|
||||
const tracksLabel = (count: number) => {
|
||||
const mod10 = count % 10;
|
||||
const mod100 = count % 100;
|
||||
if (mod10 === 1 && mod100 !== 11) return `${count} трек`;
|
||||
if (mod10 >= 2 && mod10 <= 4 && (mod100 < 12 || mod100 > 14)) {
|
||||
return `${count} трека`;
|
||||
}
|
||||
return `${count} треков`;
|
||||
};
|
||||
|
||||
const summary =
|
||||
upcoming.length > 0
|
||||
? `${upcoming.length} ${upcoming.length === 1 ? "track" : "tracks"} · ${getRuntimeCompact(upcomingTicks)}`
|
||||
? `${tracksLabel(upcoming.length)} · ${getRuntimeCompact(upcomingTicks)}`
|
||||
: "Очередь пуста";
|
||||
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user