+
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index 1315dbe..e2dcdad 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -1,6 +1,6 @@
import "./globals.css";
import { ReactNode } from "react";
-import { Metadata } from "next";
+import { Metadata, Viewport } from "next";
import { Figtree } from "next/font/google";
import { ConsentAwareAnalytics } from "@/components/ConsentAwareAnalytics";
import { CookieConsentBanner } from "@/components/CookieConsentBanner";
@@ -30,6 +30,10 @@ const themeInitScript = `
})();
`;
+export const viewport: Viewport = {
+ viewportFit: "cover",
+};
+
export const metadata: Metadata = {
title: {
default: "OpenReader",
diff --git a/src/components/CookieConsentBanner.tsx b/src/components/CookieConsentBanner.tsx
index c2c4608..97e5126 100644
--- a/src/components/CookieConsentBanner.tsx
+++ b/src/components/CookieConsentBanner.tsx
@@ -41,7 +41,7 @@ export function CookieConsentBanner() {
leave="transition ease-in duration-200 transform"
leaveFrom="translate-y-0 opacity-100"
leaveTo="translate-y-full opacity-0"
- className="fixed bottom-0 left-0 right-0 z-[60] p-4 md:p-6"
+ className="fixed bottom-0 left-0 right-0 z-[60] px-4 pt-4 pb-[max(1rem,env(safe-area-inset-bottom))] md:px-6 md:pt-6 md:pb-[max(1.5rem,env(safe-area-inset-bottom))]"
>
diff --git a/src/components/doclist/window/FinderSidebar.tsx b/src/components/doclist/window/FinderSidebar.tsx
index d6216cb..0ecf12c 100644
--- a/src/components/doclist/window/FinderSidebar.tsx
+++ b/src/components/doclist/window/FinderSidebar.tsx
@@ -354,7 +354,10 @@ export function FinderSidebar({
{bottomSlot && (
-
e.stopPropagation()}>
+
e.stopPropagation()}
+ >
{bottomSlot}
)}
diff --git a/src/components/doclist/window/FinderStatusBar.tsx b/src/components/doclist/window/FinderStatusBar.tsx
index e8c74de..acbd573 100644
--- a/src/components/doclist/window/FinderStatusBar.tsx
+++ b/src/components/doclist/window/FinderStatusBar.tsx
@@ -19,7 +19,7 @@ export function FinderStatusBar({
{summary}
diff --git a/src/components/player/TTSPlayer.tsx b/src/components/player/TTSPlayer.tsx
index c38dc23..2689747 100644
--- a/src/components/player/TTSPlayer.tsx
+++ b/src/components/player/TTSPlayer.tsx
@@ -32,7 +32,7 @@ export default function TTSPlayer({ currentPage, numPages }: {
return (