mirror of
https://github.com/readest/readest
synced 2026-04-21 13:37:44 +00:00
This commit is contained in:
parent
7b60b1bb0c
commit
4e1464ef17
2 changed files with 3 additions and 2 deletions
|
|
@ -476,7 +476,7 @@ const LibraryPageContent = ({ searchParams }: { searchParams: ReadonlyURLSearchP
|
|||
isInitiating.current = false;
|
||||
};
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [searchParams]);
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
const group = searchParams?.get('group') || '';
|
||||
|
|
|
|||
|
|
@ -69,7 +69,6 @@ const HeaderBar: React.FC<HeaderBarProps> = ({
|
|||
const iconSize16 = useResponsiveSize(16);
|
||||
const iconSize18 = useResponsiveSize(18);
|
||||
const headerRef = useRef<HTMLDivElement>(null);
|
||||
const windowButtonVisible = appService?.hasWindowBar && !isTrafficLightVisible;
|
||||
|
||||
const docs = view?.renderer.getContents() ?? [];
|
||||
const pointerInDoc = docs.some(({ doc }) => doc?.body?.style.cursor === 'pointer');
|
||||
|
|
@ -138,6 +137,8 @@ const HeaderBar: React.FC<HeaderBarProps> = ({
|
|||
useSpatialNavigation(headerRef, isHeaderVisible);
|
||||
const trafficLightInHeader =
|
||||
appService?.hasTrafficLight && !trafficLightInFullscreen && !isSideBarVisible && isTopLeft;
|
||||
const windowButtonVisible =
|
||||
appService?.hasWindowBar && !isTrafficLightVisible && !trafficLightInHeader;
|
||||
|
||||
return (
|
||||
<div
|
||||
|
|
|
|||
Loading…
Reference in a new issue