diff --git a/src/components/appBar/appBar.scss b/src/components/appBar/appBar.scss
index 300c77e..8e36610 100644
--- a/src/components/appBar/appBar.scss
+++ b/src/components/appBar/appBar.scss
@@ -28,6 +28,21 @@
backdrop-filter: none !important;
}
+ &-title {
+ position: absolute;
+ left: 50%;
+ top: 50%;
+ transform: translate(-50%, -50%);
+ max-width: min(38vw, 520px);
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ color: rgb(255 255 255 / 0.72);
+ font-size: 0.9rem !important;
+ font-weight: 500 !important;
+ pointer-events: none;
+ }
+
&-avatar {
background: rgb(255 255 255 / 0.1) !important;
&-icon {
diff --git a/src/components/appBar/appBar.tsx b/src/components/appBar/appBar.tsx
index f437b8b..a14a517 100644
--- a/src/components/appBar/appBar.tsx
+++ b/src/components/appBar/appBar.tsx
@@ -1,5 +1,7 @@
import MuiAppBar from "@mui/material/AppBar";
import IconButton from "@mui/material/IconButton";
+import Tooltip from "@mui/material/Tooltip";
+import Typography from "@mui/material/Typography";
import useScrollTrigger from "@mui/material/useScrollTrigger";
import { useLocation, useNavigate } from "@tanstack/react-router";
import React, { useCallback, useState } from "react";
@@ -67,7 +69,18 @@ const AppBarContent = () => {
navigate({ to: "/favorite" });
}, []);
- useHeaderStore(useShallow((s) => ({ pageTitle: s.pageTitle })));
+ const { pageTitle } = useHeaderStore(
+ useShallow((s) => ({ pageTitle: s.pageTitle })),
+ );
+
+ const fallbackTitle = (() => {
+ const path = location.pathname;
+ if (path === "/favorite") return "Favorites";
+ if (path.startsWith("/music/")) return "Music";
+ if (path.startsWith("/player/audio")) return "Now Playing";
+ return "";
+ })();
+ const title = pageTitle || fallbackTitle;
return (
<>
@@ -86,38 +99,52 @@ const AppBarContent = () => {
data-tauri-drag-region
style={{ gap: "0.6em" }}
>
-
- menu
-
+
+
+ menu
+
+
-
-
- home
-
-
+
+
+
+ home
+
+
+
+ {title && (
+
+ {title}
+
+ )}
+
-
- search
-
-
- favorite
-
+
+
+ search
+
+
+
+
+ favorite
+
+
diff --git a/src/components/appBar/navigationDrawer.tsx b/src/components/appBar/navigationDrawer.tsx
index ee33a01..b9488ad 100644
--- a/src/components/appBar/navigationDrawer.tsx
+++ b/src/components/appBar/navigationDrawer.tsx
@@ -1,5 +1,12 @@
import { getUserViewApi } from "@jellyfin/sdk/lib/utils/api/user-view-api";
-import { Divider, Drawer, List, ListItem, ListItemButton } from "@mui/material";
+import {
+ Divider,
+ Drawer,
+ List,
+ ListItem,
+ ListItemButton,
+ Typography,
+} from "@mui/material";
import { useQuery } from "@tanstack/react-query";
import React, { useEffect, useMemo } from "react";
import { useApiInContext } from "@/utils/store/api";
@@ -61,6 +68,12 @@ export const NavigationDrawer = ({ open, onClose }: NavigationDrawerProps) => {
+
+ Browse
+
{
primary="Home"
onClick={onClose}
/>
+
+
{libraries.isSuccess &&
libraries.data?.Items?.map((library) => (
{
))}
+
+ Settings
+
+
arrow_back
);
diff --git a/src/components/itemDetail/itemDetailLayout.tsx b/src/components/itemDetail/itemDetailLayout.tsx
index 057138b..ae37862 100644
--- a/src/components/itemDetail/itemDetailLayout.tsx
+++ b/src/components/itemDetail/itemDetailLayout.tsx
@@ -15,6 +15,7 @@ import ShowMoreText from "@/components/showMoreText";
import { useApiInContext } from "@/utils/store/api";
import { useBackdropStore } from "@/utils/store/backdrop";
import { useCentralStore } from "@/utils/store/central";
+import useHeaderStore from "@/utils/store/header";
import type MediaQualityInfo from "@/utils/types/mediaQualityInfo";
import "./itemDetail.scss";
@@ -90,6 +91,13 @@ const ItemDetailLayout = ({
setBackdrop(hash);
}, [hash, setBackdrop]);
+ // Show a human-readable location in the global app bar.
+ const setPageTitle = useHeaderStore((state) => state.setPageTitle);
+ useEffect(() => {
+ setPageTitle(item.Name ?? null);
+ return () => setPageTitle(null);
+ }, [item.Name, setPageTitle]);
+
return (
{
color="transparent"
>
-
+
menu
-
+
{
-
+
search
favorite
diff --git a/src/components/playback/audioPlayer/index.tsx b/src/components/playback/audioPlayer/index.tsx
index e8f37cc..43349a0 100644
--- a/src/components/playback/audioPlayer/index.tsx
+++ b/src/components/playback/audioPlayer/index.tsx
@@ -594,24 +594,37 @@ const AudioPlayer = () => {
shuffle
-
- skip_previous
-
-
- remote
- ? remoteCommand(PlaystateCommand.PlayPause)
- : handlePlayPause()
- }
- >
-
- {isPlaying ? "pause" : "play_arrow"}
-
-
-
- skip_next
-
+
+
+
+ skip_previous
+
+
+
+
+
+ remote
+ ? remoteCommand(PlaystateCommand.PlayPause)
+ : handlePlayPause()
+ }
+ >
+
+ {isPlaying ? "pause" : "play_arrow"}
+
+
+
+
+
+ skip_next
+
+
-
+
arrow_back
- setSettingsMenuRef(e.currentTarget)}>
+ setSettingsMenuRef(e.currentTarget)}
+ aria-label="Player settings"
+ title="Player settings"
+ >
settings
{
return (
-
+
{!!user?.Id &&
(user?.PrimaryImageTag === undefined ? (
diff --git a/src/routes/_api/home/homeHeader.tsx b/src/routes/_api/home/homeHeader.tsx
index 540ed88..33fe810 100644
--- a/src/routes/_api/home/homeHeader.tsx
+++ b/src/routes/_api/home/homeHeader.tsx
@@ -22,12 +22,20 @@ const HomeHeader = ({ libraries, onNewAndPopular }: HomeHeaderProps) => {
const moviesLibrary = libraries.find(
(library) => library.CollectionType === "movies",
);
+ const showsLibrary = libraries.find(
+ (library) => library.CollectionType === "tvshows",
+ );
const openMovies = useCallback(() => {
if (!moviesLibrary?.Id) return;
navigate({ to: "/library/$id", params: { id: moviesLibrary.Id } });
}, [moviesLibrary?.Id, navigate]);
+ const openShows = useCallback(() => {
+ if (!showsLibrary?.Id) return;
+ navigate({ to: "/library/$id", params: { id: showsLibrary.Id } });
+ }, [showsLibrary?.Id, navigate]);
+
return (
<>
@@ -47,6 +55,15 @@ const HomeHeader = ({ libraries, onNewAndPopular }: HomeHeaderProps) => {
Movies
)}
+ {showsLibrary?.Id && (
+
+ )}