@@ -27,13 +27,12 @@ import { useThemeSettings } from "@/lib/theme/hooks"
27
27
import { useSetAtom } from "jotai"
28
28
import { usePathname , useRouter } from "next/navigation"
29
29
import React from "react"
30
- import { AiOutlineArrowLeft , AiOutlineArrowRight } from "react-icons/ai"
31
30
import { BiCalendarAlt , BiDownload , BiExtension , BiLogOut , BiNews } from "react-icons/bi"
32
31
import { FaBookReader } from "react-icons/fa"
33
32
import { FiLogIn , FiSearch , FiSettings } from "react-icons/fi"
34
33
import { HiOutlineServerStack } from "react-icons/hi2"
35
34
import { IoCloudOfflineOutline , IoLibrary } from "react-icons/io5"
36
- import { PiClockCounterClockwiseFill } from "react-icons/pi"
35
+ import { PiArrowCircleLeftDuotone , PiArrowCircleRightDuotone , PiClockCounterClockwiseFill } from "react-icons/pi"
37
36
import { SiAnilist } from "react-icons/si"
38
37
import { TbWorldDownload } from "react-icons/tb"
39
38
@@ -125,28 +124,7 @@ export function MainSidebar() {
125
124
126
125
< div >
127
126
< div className = "mb-4 p-4 pb-0 flex justify-center w-full" >
128
- { process . env . NEXT_PUBLIC_PLATFORM === "desktop" ? < div className = "w-15 h-10 block w-fit" >
129
- < HoverCard
130
- side = "right"
131
- className = "w-fit rounded-full flex gap-2 bg-gray-950 bg-opacity-50 p-2"
132
- trigger = { < div className = "" >
133
- < img src = "/logo.png" alt = "logo" className = "w-15 h-10 block" />
134
- </ div > }
135
- >
136
- < IconButton
137
- icon = { < AiOutlineArrowLeft /> } rounded intent = "white-outline" size = "sm"
138
- onClick = { ( ) => {
139
- router . back ( )
140
- } }
141
- />
142
- < IconButton
143
- icon = { < AiOutlineArrowRight /> } rounded intent = "white-outline" size = "sm"
144
- onClick = { ( ) => {
145
- router . forward ( )
146
- } }
147
- />
148
- </ HoverCard >
149
- </ div > : < img src = "/logo.png" alt = "logo" className = "w-15 h-10" /> }
127
+ < img src = "/logo.png" alt = "logo" className = "w-15 h-10" />
150
128
</ div >
151
129
< VerticalMenu
152
130
className = "px-4"
@@ -253,6 +231,32 @@ export function MainSidebar() {
253
231
handleUnexpandedSidebar = { ( ) => { } }
254
232
/>
255
233
234
+ { process . env . NEXT_PUBLIC_PLATFORM === "desktop" && < div className = "block w-fit px-4" >
235
+ < HoverCard
236
+ side = "right"
237
+ sideOffset = { - 8 }
238
+ // className="w-fit rounded-full flex gap-2 bg-gray-950 bg-opacity-50 p-2"
239
+ className = "bg-transparent border-none"
240
+ trigger = { < IconButton
241
+ intent = "gray-basic"
242
+ className = "px-6 opacity-50 hover:opacity-100"
243
+ icon = { < PiArrowCircleLeftDuotone /> }
244
+ onClick = { ( ) => {
245
+ router . back ( )
246
+ } }
247
+ /> }
248
+ >
249
+ < IconButton
250
+ icon = { < PiArrowCircleRightDuotone /> }
251
+ intent = "gray-subtle"
252
+ className = "px-6 opacity-50 hover:opacity-100"
253
+ onClick = { ( ) => {
254
+ router . forward ( )
255
+ } }
256
+ />
257
+ </ HoverCard >
258
+ </ div > }
259
+
256
260
</ div >
257
261
< div className = "flex w-full gap-2 flex-col px-4" >
258
262
{ process . env . NEXT_PUBLIC_PLATFORM !== "desktop" ? < UpdateModal collapsed = { isCollapsed } /> :
0 commit comments