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:
1xDed committed 2026-12-01 02:47:40 +03:00
1 parent d9bce4de04
commit fcf61012db
13 files changed
+245 -171

No files matched your search

+17 -2
View File
@@ -98,14 +98,29 @@ function Library() {
} */
return (
<main className="scrollY library padded-top">
<main
className={`scrollY library padded-top${
currentLib.data.CollectionType === "music"
? " music-library music-page"
: ""
}`}
>
<LibraryHeader />
<Suspense fallback={<LibraryItemsSkeleton />}>
<div className="library-items">
<LibraryItemsGrid />
</div>
<div style={{ position: "fixed", right: 14, top: 80 }}>
<div
style={{
position: "fixed",
right:
currentLib.data.CollectionType === "music"
? "max(14px, calc((100vw - 1180px) / 2 + 18px))"
: 14,
top: 80,
}}
>
<AlphaSelector />
</div>
</Suspense>
-1
View File
@@ -768,7 +768,6 @@ export function VideoPlayer() {
onMouseMove={handleMouseMove}
onMouseLeave={handleMouseLeave}
>
<div className="video-player-drag-region" data-tauri-drag-region />
<LoadingIndicator />
<ErrorDisplay
error={error}
+3 -1
View File
@@ -29,6 +29,7 @@ import { useShallow } from "zustand/shallow";
import { NavigationDrawer } from "@/components/appBar/navigationDrawer";
import BackButton from "@/components/buttons/backButton";
import { UserAvatarMenu } from "@/components/userAvatarMenu";
import WindowControls from "@/components/windowControls";
import { useApiInContext } from "@/utils/store/api";
import useDebounce from "@/utils/hooks/useDebounce";
import { useCentralStore } from "@/utils/store/central";
@@ -110,7 +111,7 @@ function SearchPage() {
<div
className="search-page-content"
style={{
paddingTop: "2.4em",
paddingTop: "4.4em",
}}
>
{debouncedSearchTerm ? (
@@ -361,6 +362,7 @@ function SearchAppBar({
<div className="material-symbols-rounded">favorite</div>
</IconButton>
<UserAvatarMenu />
<WindowControls />
</div>
</AppBar>
<NavigationDrawer
+8
View File
@@ -8,6 +8,14 @@
padding: 0;
width: 100vw;
height: 100vh;
// Frameless window on Windows/Linux: the floating window buttons
// sit in the top 44px, so the settings grid starts below that strip.
html.is-windows &,
html.is-linux & {
padding-top: 44px;
box-sizing: border-box;
}
}
&-scrollY {
padding: 2em;