feat(navigation): clearer labels, context and direct destinations
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Shows the current page in the app bar, labels every top-level icon action, adds Search/Favorites and a Shows shortcut to the main navigation, removes the redundant search icon on the search page, and cleans up page titles on leave.
This commit is contained in:
1 parent
b592680006
commit
7c5fa8f869
13 files changed
+214
-60
No files matched your search
@@ -28,6 +28,21 @@
|
|||||||
backdrop-filter: none !important;
|
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 {
|
&-avatar {
|
||||||
background: rgb(255 255 255 / 0.1) !important;
|
background: rgb(255 255 255 / 0.1) !important;
|
||||||
&-icon {
|
&-icon {
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
import MuiAppBar from "@mui/material/AppBar";
|
import MuiAppBar from "@mui/material/AppBar";
|
||||||
import IconButton from "@mui/material/IconButton";
|
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 useScrollTrigger from "@mui/material/useScrollTrigger";
|
||||||
import { useLocation, useNavigate } from "@tanstack/react-router";
|
import { useLocation, useNavigate } from "@tanstack/react-router";
|
||||||
import React, { useCallback, useState } from "react";
|
import React, { useCallback, useState } from "react";
|
||||||
@@ -67,7 +69,18 @@ const AppBarContent = () => {
|
|||||||
navigate({ to: "/favorite" });
|
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 (
|
return (
|
||||||
<>
|
<>
|
||||||
@@ -86,38 +99,52 @@ const AppBarContent = () => {
|
|||||||
data-tauri-drag-region
|
data-tauri-drag-region
|
||||||
style={{ gap: "0.6em" }}
|
style={{ gap: "0.6em" }}
|
||||||
>
|
>
|
||||||
<IconButton onClick={handleDrawerOpen} aria-label="Open navigation">
|
<Tooltip title="Open navigation">
|
||||||
<span className="material-symbols-rounded">menu</span>
|
<IconButton onClick={handleDrawerOpen} aria-label="Open navigation">
|
||||||
</IconButton>
|
<span className="material-symbols-rounded">menu</span>
|
||||||
|
</IconButton>
|
||||||
|
</Tooltip>
|
||||||
<MemoizeBackButton />
|
<MemoizeBackButton />
|
||||||
<IconButton onClick={handleNavigateToHome} aria-label="Home">
|
<Tooltip title="Home">
|
||||||
<span
|
<IconButton onClick={handleNavigateToHome} aria-label="Home">
|
||||||
className={
|
<span
|
||||||
location.pathname === "/home"
|
className={
|
||||||
? "material-symbols-rounded fill"
|
location.pathname === "/home"
|
||||||
: "material-symbols-rounded"
|
? "material-symbols-rounded fill"
|
||||||
}
|
: "material-symbols-rounded"
|
||||||
>
|
}
|
||||||
home
|
>
|
||||||
</span>
|
home
|
||||||
</IconButton>
|
</span>
|
||||||
|
</IconButton>
|
||||||
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{title && (
|
||||||
|
<Typography className="appBar-title" noWrap>
|
||||||
|
{title}
|
||||||
|
</Typography>
|
||||||
|
)}
|
||||||
|
|
||||||
<div
|
<div
|
||||||
className="flex flex-row"
|
className="flex flex-row"
|
||||||
data-tauri-drag-region
|
data-tauri-drag-region
|
||||||
style={{ gap: "0.6em" }}
|
style={{ gap: "0.6em" }}
|
||||||
>
|
>
|
||||||
<CastButton />
|
<CastButton />
|
||||||
<IconButton onClick={toggleSearchDialog} aria-label="Search">
|
<Tooltip title="Search">
|
||||||
<span className="material-symbols-rounded">search</span>
|
<IconButton onClick={toggleSearchDialog} aria-label="Search">
|
||||||
</IconButton>
|
<span className="material-symbols-rounded">search</span>
|
||||||
<IconButton
|
</IconButton>
|
||||||
onClick={handleNavigateToFavorite}
|
</Tooltip>
|
||||||
aria-label="Favorites"
|
<Tooltip title="Favorites">
|
||||||
>
|
<IconButton
|
||||||
<span className="material-symbols-rounded">favorite</span>
|
onClick={handleNavigateToFavorite}
|
||||||
</IconButton>
|
aria-label="Favorites"
|
||||||
|
>
|
||||||
|
<span className="material-symbols-rounded">favorite</span>
|
||||||
|
</IconButton>
|
||||||
|
</Tooltip>
|
||||||
<UserAvatarMenu />
|
<UserAvatarMenu />
|
||||||
<WindowControls />
|
<WindowControls />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
import { getUserViewApi } from "@jellyfin/sdk/lib/utils/api/user-view-api";
|
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 { useQuery } from "@tanstack/react-query";
|
||||||
import React, { useEffect, useMemo } from "react";
|
import React, { useEffect, useMemo } from "react";
|
||||||
import { useApiInContext } from "@/utils/store/api";
|
import { useApiInContext } from "@/utils/store/api";
|
||||||
@@ -61,6 +68,12 @@ export const NavigationDrawer = ({ open, onClose }: NavigationDrawerProps) => {
|
|||||||
</ListItem>
|
</ListItem>
|
||||||
</List>
|
</List>
|
||||||
<Divider variant="middle" />
|
<Divider variant="middle" />
|
||||||
|
<Typography
|
||||||
|
variant="overline"
|
||||||
|
sx={{ display: "block", px: 2, pt: 1.5, opacity: 0.55 }}
|
||||||
|
>
|
||||||
|
Browse
|
||||||
|
</Typography>
|
||||||
<List>
|
<List>
|
||||||
<ListItemLink
|
<ListItemLink
|
||||||
className="library-drawer-item"
|
className="library-drawer-item"
|
||||||
@@ -69,6 +82,21 @@ export const NavigationDrawer = ({ open, onClose }: NavigationDrawerProps) => {
|
|||||||
primary="Home"
|
primary="Home"
|
||||||
onClick={onClose}
|
onClick={onClose}
|
||||||
/>
|
/>
|
||||||
|
<ListItemLink
|
||||||
|
className="library-drawer-item"
|
||||||
|
to="/search"
|
||||||
|
search={{ query: "" }}
|
||||||
|
icon="search"
|
||||||
|
primary="Search"
|
||||||
|
onClick={onClose}
|
||||||
|
/>
|
||||||
|
<ListItemLink
|
||||||
|
className="library-drawer-item"
|
||||||
|
to="/favorite"
|
||||||
|
icon="favorite"
|
||||||
|
primary="Favorites"
|
||||||
|
onClick={onClose}
|
||||||
|
/>
|
||||||
{libraries.isSuccess &&
|
{libraries.isSuccess &&
|
||||||
libraries.data?.Items?.map((library) => (
|
libraries.data?.Items?.map((library) => (
|
||||||
<ListItemLink
|
<ListItemLink
|
||||||
@@ -85,6 +113,12 @@ export const NavigationDrawer = ({ open, onClose }: NavigationDrawerProps) => {
|
|||||||
))}
|
))}
|
||||||
</List>
|
</List>
|
||||||
<Divider variant="middle" />
|
<Divider variant="middle" />
|
||||||
|
<Typography
|
||||||
|
variant="overline"
|
||||||
|
sx={{ display: "block", px: 2, pt: 1.5, opacity: 0.55 }}
|
||||||
|
>
|
||||||
|
Settings
|
||||||
|
</Typography>
|
||||||
<List>
|
<List>
|
||||||
<ListItemLink
|
<ListItemLink
|
||||||
to="/settings/preferences"
|
to="/settings/preferences"
|
||||||
|
|||||||
@@ -9,7 +9,12 @@ export default function BackButton() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<IconButton onClick={handleClick} disabled={history.length === 0}>
|
<IconButton
|
||||||
|
onClick={handleClick}
|
||||||
|
disabled={history.length === 0}
|
||||||
|
aria-label="Back"
|
||||||
|
title="Back"
|
||||||
|
>
|
||||||
<span className="material-symbols-rounded">arrow_back</span>
|
<span className="material-symbols-rounded">arrow_back</span>
|
||||||
</IconButton>
|
</IconButton>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ import ShowMoreText from "@/components/showMoreText";
|
|||||||
import { useApiInContext } from "@/utils/store/api";
|
import { useApiInContext } from "@/utils/store/api";
|
||||||
import { useBackdropStore } from "@/utils/store/backdrop";
|
import { useBackdropStore } from "@/utils/store/backdrop";
|
||||||
import { useCentralStore } from "@/utils/store/central";
|
import { useCentralStore } from "@/utils/store/central";
|
||||||
|
import useHeaderStore from "@/utils/store/header";
|
||||||
import type MediaQualityInfo from "@/utils/types/mediaQualityInfo";
|
import type MediaQualityInfo from "@/utils/types/mediaQualityInfo";
|
||||||
|
|
||||||
import "./itemDetail.scss";
|
import "./itemDetail.scss";
|
||||||
@@ -90,6 +91,13 @@ const ItemDetailLayout = ({
|
|||||||
setBackdrop(hash);
|
setBackdrop(hash);
|
||||||
}, [hash, setBackdrop]);
|
}, [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 (
|
return (
|
||||||
<motion.div
|
<motion.div
|
||||||
key={item.Id}
|
key={item.Id}
|
||||||
|
|||||||
@@ -270,11 +270,19 @@ export const LibraryHeader = () => {
|
|||||||
color="transparent"
|
color="transparent"
|
||||||
>
|
>
|
||||||
<div className="flex flex-row" data-tauri-drag-region style={{ gap: "0.6em" }}>
|
<div className="flex flex-row" data-tauri-drag-region style={{ gap: "0.6em" }}>
|
||||||
<IconButton onClick={handleDrawerOpen}>
|
<IconButton
|
||||||
|
onClick={handleDrawerOpen}
|
||||||
|
aria-label="Open navigation"
|
||||||
|
title="Open navigation"
|
||||||
|
>
|
||||||
<div className="material-symbols-rounded">menu</div>
|
<div className="material-symbols-rounded">menu</div>
|
||||||
</IconButton>
|
</IconButton>
|
||||||
<MemoizeBackButton />
|
<MemoizeBackButton />
|
||||||
<IconButton onClick={handleNavigateToHome}>
|
<IconButton
|
||||||
|
onClick={handleNavigateToHome}
|
||||||
|
aria-label="Home"
|
||||||
|
title="Home"
|
||||||
|
>
|
||||||
<div
|
<div
|
||||||
className={
|
className={
|
||||||
location.pathname === "/home"
|
location.pathname === "/home"
|
||||||
@@ -393,12 +401,18 @@ export const LibraryHeader = () => {
|
|||||||
<span className="library-header-cast">
|
<span className="library-header-cast">
|
||||||
<CastButton />
|
<CastButton />
|
||||||
</span>
|
</span>
|
||||||
<IconButton onClick={toggleSearchDialog}>
|
<IconButton
|
||||||
|
onClick={toggleSearchDialog}
|
||||||
|
aria-label="Search"
|
||||||
|
title="Search"
|
||||||
|
>
|
||||||
<div className="material-symbols-rounded">search</div>
|
<div className="material-symbols-rounded">search</div>
|
||||||
</IconButton>
|
</IconButton>
|
||||||
<IconButton
|
<IconButton
|
||||||
className="library-header-favorite"
|
className="library-header-favorite"
|
||||||
onClick={handleNavigateToFavorite}
|
onClick={handleNavigateToFavorite}
|
||||||
|
aria-label="Favorites"
|
||||||
|
title="Favorites"
|
||||||
>
|
>
|
||||||
<div className="material-symbols-rounded">favorite</div>
|
<div className="material-symbols-rounded">favorite</div>
|
||||||
</IconButton>
|
</IconButton>
|
||||||
|
|||||||
@@ -594,24 +594,37 @@ const AudioPlayer = () => {
|
|||||||
<span className="material-symbols-rounded">shuffle</span>
|
<span className="material-symbols-rounded">shuffle</span>
|
||||||
</IconButton>
|
</IconButton>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
<IconButton size="small" onClick={handlePrevious}>
|
<Tooltip title="Previous">
|
||||||
<span className="material-symbols-rounded">skip_previous</span>
|
<IconButton
|
||||||
</IconButton>
|
size="small"
|
||||||
<IconButton
|
onClick={handlePrevious}
|
||||||
className="media-bar-play"
|
aria-label="Previous"
|
||||||
onClick={() =>
|
>
|
||||||
remote
|
<span className="material-symbols-rounded">
|
||||||
? remoteCommand(PlaystateCommand.PlayPause)
|
skip_previous
|
||||||
: handlePlayPause()
|
</span>
|
||||||
}
|
</IconButton>
|
||||||
>
|
</Tooltip>
|
||||||
<span className="material-symbols-rounded">
|
<Tooltip title={isPlaying ? "Pause" : "Play"}>
|
||||||
{isPlaying ? "pause" : "play_arrow"}
|
<IconButton
|
||||||
</span>
|
className="media-bar-play"
|
||||||
</IconButton>
|
aria-label={isPlaying ? "Pause" : "Play"}
|
||||||
<IconButton size="small" onClick={handleNext}>
|
onClick={() =>
|
||||||
<span className="material-symbols-rounded">skip_next</span>
|
remote
|
||||||
</IconButton>
|
? remoteCommand(PlaystateCommand.PlayPause)
|
||||||
|
: handlePlayPause()
|
||||||
|
}
|
||||||
|
>
|
||||||
|
<span className="material-symbols-rounded">
|
||||||
|
{isPlaying ? "pause" : "play_arrow"}
|
||||||
|
</span>
|
||||||
|
</IconButton>
|
||||||
|
</Tooltip>
|
||||||
|
<Tooltip title="Next">
|
||||||
|
<IconButton size="small" onClick={handleNext} aria-label="Next">
|
||||||
|
<span className="material-symbols-rounded">skip_next</span>
|
||||||
|
</IconButton>
|
||||||
|
</Tooltip>
|
||||||
<Tooltip
|
<Tooltip
|
||||||
title={
|
title={
|
||||||
remote
|
remote
|
||||||
|
|||||||
@@ -225,10 +225,18 @@ const VideoPlayerControls = ({
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div className="video-player-osd-header flex flex-justify-spaced-between flex-align-center">
|
<div className="video-player-osd-header flex flex-justify-spaced-between flex-align-center">
|
||||||
<IconButton onClick={handleExitPlayer}>
|
<IconButton
|
||||||
|
onClick={handleExitPlayer}
|
||||||
|
aria-label="Exit player"
|
||||||
|
title="Exit player"
|
||||||
|
>
|
||||||
<span className="material-symbols-rounded">arrow_back</span>
|
<span className="material-symbols-rounded">arrow_back</span>
|
||||||
</IconButton>
|
</IconButton>
|
||||||
<IconButton onClick={(e) => setSettingsMenuRef(e.currentTarget)}>
|
<IconButton
|
||||||
|
onClick={(e) => setSettingsMenuRef(e.currentTarget)}
|
||||||
|
aria-label="Player settings"
|
||||||
|
title="Player settings"
|
||||||
|
>
|
||||||
<span className="material-symbols-rounded">settings</span>
|
<span className="material-symbols-rounded">settings</span>
|
||||||
</IconButton>
|
</IconButton>
|
||||||
<VideoPlayerSettingsMenu
|
<VideoPlayerSettingsMenu
|
||||||
|
|||||||
@@ -61,7 +61,12 @@ export const UserAvatarMenu = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<IconButton sx={menuButtonSx} onClick={handleMenuOpen}>
|
<IconButton
|
||||||
|
sx={menuButtonSx}
|
||||||
|
onClick={handleMenuOpen}
|
||||||
|
aria-label="Account menu"
|
||||||
|
title="Account menu"
|
||||||
|
>
|
||||||
{!!user?.Id &&
|
{!!user?.Id &&
|
||||||
(user?.PrimaryImageTag === undefined ? (
|
(user?.PrimaryImageTag === undefined ? (
|
||||||
<Avatar className="appBar-avatar" alt={user?.Name ?? "image"}>
|
<Avatar className="appBar-avatar" alt={user?.Name ?? "image"}>
|
||||||
|
|||||||
@@ -22,12 +22,20 @@ const HomeHeader = ({ libraries, onNewAndPopular }: HomeHeaderProps) => {
|
|||||||
const moviesLibrary = libraries.find(
|
const moviesLibrary = libraries.find(
|
||||||
(library) => library.CollectionType === "movies",
|
(library) => library.CollectionType === "movies",
|
||||||
);
|
);
|
||||||
|
const showsLibrary = libraries.find(
|
||||||
|
(library) => library.CollectionType === "tvshows",
|
||||||
|
);
|
||||||
|
|
||||||
const openMovies = useCallback(() => {
|
const openMovies = useCallback(() => {
|
||||||
if (!moviesLibrary?.Id) return;
|
if (!moviesLibrary?.Id) return;
|
||||||
navigate({ to: "/library/$id", params: { id: moviesLibrary.Id } });
|
navigate({ to: "/library/$id", params: { id: moviesLibrary.Id } });
|
||||||
}, [moviesLibrary?.Id, navigate]);
|
}, [moviesLibrary?.Id, navigate]);
|
||||||
|
|
||||||
|
const openShows = useCallback(() => {
|
||||||
|
if (!showsLibrary?.Id) return;
|
||||||
|
navigate({ to: "/library/$id", params: { id: showsLibrary.Id } });
|
||||||
|
}, [showsLibrary?.Id, navigate]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<header className="home-header" data-tauri-drag-region>
|
<header className="home-header" data-tauri-drag-region>
|
||||||
@@ -47,6 +55,15 @@ const HomeHeader = ({ libraries, onNewAndPopular }: HomeHeaderProps) => {
|
|||||||
Movies
|
Movies
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
|
{showsLibrary?.Id && (
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
className="home-nav-link"
|
||||||
|
onClick={openShows}
|
||||||
|
>
|
||||||
|
Shows
|
||||||
|
</button>
|
||||||
|
)}
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className="home-nav-link"
|
className="home-nav-link"
|
||||||
|
|||||||
@@ -89,6 +89,7 @@ function Library() {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const title = storeLibraryName ?? "Library";
|
const title = storeLibraryName ?? "Library";
|
||||||
setPageTitle(title);
|
setPageTitle(title);
|
||||||
|
return () => setPageTitle(null);
|
||||||
}, [storeLibraryName, setPageTitle]);
|
}, [storeLibraryName, setPageTitle]);
|
||||||
|
|
||||||
/* if (!id) {
|
/* if (!id) {
|
||||||
|
|||||||
@@ -32,7 +32,6 @@ import { UserAvatarMenu } from "@/components/userAvatarMenu";
|
|||||||
import { useApiInContext } from "@/utils/store/api";
|
import { useApiInContext } from "@/utils/store/api";
|
||||||
import useDebounce from "@/utils/hooks/useDebounce";
|
import useDebounce from "@/utils/hooks/useDebounce";
|
||||||
import { useCentralStore } from "@/utils/store/central";
|
import { useCentralStore } from "@/utils/store/central";
|
||||||
import useSearchStore from "@/utils/store/search";
|
|
||||||
|
|
||||||
export const Route = createFileRoute("/_api/search/")({
|
export const Route = createFileRoute("/_api/search/")({
|
||||||
component: SearchPage,
|
component: SearchPage,
|
||||||
@@ -183,9 +182,6 @@ function SearchAppBar({
|
|||||||
navigate({ to: "/favorite" });
|
navigate({ to: "/favorite" });
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const toggleSearchDialog = useSearchStore(
|
|
||||||
useShallow((s) => s.toggleSearchDialog),
|
|
||||||
);
|
|
||||||
const [showDrawer, setShowDrawer] = useState(false);
|
const [showDrawer, setShowDrawer] = useState(false);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -201,11 +197,19 @@ function SearchAppBar({
|
|||||||
color="transparent"
|
color="transparent"
|
||||||
>
|
>
|
||||||
<div className="flex flex-row" style={{ gap: "0.6em" }}>
|
<div className="flex flex-row" style={{ gap: "0.6em" }}>
|
||||||
<IconButton onClick={() => setShowDrawer(true)}>
|
<IconButton
|
||||||
|
onClick={() => setShowDrawer(true)}
|
||||||
|
aria-label="Open navigation"
|
||||||
|
title="Open navigation"
|
||||||
|
>
|
||||||
<div className="material-symbols-rounded">menu</div>
|
<div className="material-symbols-rounded">menu</div>
|
||||||
</IconButton>
|
</IconButton>
|
||||||
<BackButton />
|
<BackButton />
|
||||||
<IconButton onClick={handleNavigateToHome}>
|
<IconButton
|
||||||
|
onClick={handleNavigateToHome}
|
||||||
|
aria-label="Home"
|
||||||
|
title="Home"
|
||||||
|
>
|
||||||
<div
|
<div
|
||||||
className={
|
className={
|
||||||
location.pathname === "/home"
|
location.pathname === "/home"
|
||||||
@@ -349,10 +353,11 @@ function SearchAppBar({
|
|||||||
</Box>
|
</Box>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-row" style={{ gap: "0.6em" }}>
|
<div className="flex flex-row" style={{ gap: "0.6em" }}>
|
||||||
<IconButton onClick={toggleSearchDialog}>
|
<IconButton
|
||||||
<span className="material-symbols-rounded">search</span>
|
onClick={handleNavigateToFavorite}
|
||||||
</IconButton>
|
aria-label="Favorites"
|
||||||
<IconButton onClick={handleNavigateToFavorite}>
|
title="Favorites"
|
||||||
|
>
|
||||||
<div className="material-symbols-rounded">favorite</div>
|
<div className="material-symbols-rounded">favorite</div>
|
||||||
</IconButton>
|
</IconButton>
|
||||||
<UserAvatarMenu />
|
<UserAvatarMenu />
|
||||||
|
|||||||
@@ -32,6 +32,8 @@ function SettingsRoute() {
|
|||||||
<BackButton />
|
<BackButton />
|
||||||
<IconButton
|
<IconButton
|
||||||
onClick={handleNavigateHome}
|
onClick={handleNavigateHome}
|
||||||
|
aria-label="Home"
|
||||||
|
title="Home"
|
||||||
sx={{
|
sx={{
|
||||||
background: "rgba(255, 255, 255, 0.05)",
|
background: "rgba(255, 255, 255, 0.05)",
|
||||||
"&:hover": { background: "rgba(255, 255, 255, 0.1)" },
|
"&:hover": { background: "rgba(255, 255, 255, 0.1)" },
|
||||||
|
|||||||
Reference in new issue
Block a user