From 6d6a3ab79d56897da0372697b44f4abac1be2c29 Mon Sep 17 00:00:00 2001 From: 5rahim Date: Sat, 14 Dec 2024 15:50:01 +0000 Subject: [PATCH] fix nav buttons --- CHANGELOG.md | 2 +- .../_features/navigation/main-sidebar.tsx | 52 ++++++++++--------- .../components/ui/hover-card/hover-card.tsx | 2 +- 3 files changed, 30 insertions(+), 26 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1dc06f48..14f1dca2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ All notable changes to this project will be documented in this file. - ⚡️ Desktop: Automatically restart server process when it crashes/exits - ⚡️ Desktop: Added 'Restart server' button when server process is terminated - ⚡️ Auto progress update now works for built-in media player -- ⚡️ Desktop: Back/Forward navigation buttons when hovering logo #171 +- ⚡️ Desktop: Back/Forward navigation buttons #171 - ⚡️ Open search page by clicking on media genres and ranks #172 - ⚡️ Support for AniList 'repeat' field #169 - ⚡️ Ignore dropped anime in missing episodes #170 diff --git a/seanime-web/src/app/(main)/_features/navigation/main-sidebar.tsx b/seanime-web/src/app/(main)/_features/navigation/main-sidebar.tsx index fe780eee..50f3dd1f 100644 --- a/seanime-web/src/app/(main)/_features/navigation/main-sidebar.tsx +++ b/seanime-web/src/app/(main)/_features/navigation/main-sidebar.tsx @@ -27,13 +27,12 @@ import { useThemeSettings } from "@/lib/theme/hooks" import { useSetAtom } from "jotai" import { usePathname, useRouter } from "next/navigation" import React from "react" -import { AiOutlineArrowLeft, AiOutlineArrowRight } from "react-icons/ai" import { BiCalendarAlt, BiDownload, BiExtension, BiLogOut, BiNews } from "react-icons/bi" import { FaBookReader } from "react-icons/fa" import { FiLogIn, FiSearch, FiSettings } from "react-icons/fi" import { HiOutlineServerStack } from "react-icons/hi2" import { IoCloudOfflineOutline, IoLibrary } from "react-icons/io5" -import { PiClockCounterClockwiseFill } from "react-icons/pi" +import { PiArrowCircleLeftDuotone, PiArrowCircleRightDuotone, PiClockCounterClockwiseFill } from "react-icons/pi" import { SiAnilist } from "react-icons/si" import { TbWorldDownload } from "react-icons/tb" @@ -125,28 +124,7 @@ export function MainSidebar() {
- {process.env.NEXT_PUBLIC_PLATFORM === "desktop" ?
- - logo -
} - > - } rounded intent="white-outline" size="sm" - onClick={() => { - router.back() - }} - /> - } rounded intent="white-outline" size="sm" - onClick={() => { - router.forward() - }} - /> - -
: logo} + logo
{}} /> + {process.env.NEXT_PUBLIC_PLATFORM === "desktop" &&
+ } + onClick={() => { + router.back() + }} + />} + > + } + intent="gray-subtle" + className="px-6 opacity-50 hover:opacity-100" + onClick={() => { + router.forward() + }} + /> + +
} +
{process.env.NEXT_PUBLIC_PLATFORM !== "desktop" ? : diff --git a/seanime-web/src/components/ui/hover-card/hover-card.tsx b/seanime-web/src/components/ui/hover-card/hover-card.tsx index 596e09e4..785920d0 100644 --- a/seanime-web/src/components/ui/hover-card/hover-card.tsx +++ b/seanime-web/src/components/ui/hover-card/hover-card.tsx @@ -37,7 +37,7 @@ export const HoverCard = React.forwardRef((props } = props return ( - + {props.trigger}