Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Metadata } from "next";
import type { Metadata, Viewport } from "next";
import { Lora, Inter, Geist_Mono } from "next/font/google";
import { Providers } from "./providers";
import { NavBar } from "../components/NavBar";
Expand Down Expand Up @@ -29,6 +29,12 @@ const appDescription =
"Tokenise your story from day 1. Publish plots, drive trading, earn royalties from every trade — powered by the market, not a platform.";
const themeColor = "#E8DFD0";

export const viewport: Viewport = {
width: "device-width",
initialScale: 1,
viewportFit: "cover",
};

export const metadata: Metadata = {
metadataBase: new URL(appUrl),
title: appName,
Expand Down
2 changes: 1 addition & 1 deletion src/components/MobileActionBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function MobileActionBar({

{/* Bottom sheet */}
{open && (
<div className="fixed inset-x-0 bottom-0 z-50 max-h-[80vh] overflow-y-auto rounded-t-lg border-t border-[var(--border)] bg-[var(--bg)] p-4">
<div className="fixed inset-x-0 bottom-0 z-50 max-h-[80vh] overflow-y-auto rounded-t-lg border-t border-[var(--border)] bg-[var(--bg)] p-4 pb-[calc(1rem+env(safe-area-inset-bottom))]">
<div className="mb-3 flex items-center justify-between">
<span className="text-foreground text-sm font-medium capitalize">
{open}
Expand Down
2 changes: 1 addition & 1 deletion src/components/ReadingMode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}

export function ReadingMode({
storylineId,

Check warning on line 21 in src/components/ReadingMode.tsx

View workflow job for this annotation

GitHub Actions / lint-and-typecheck

'storylineId' is defined but never used
storylineTitle,
chapters,
initialChapterIndex,
Expand Down Expand Up @@ -115,7 +115,7 @@

{/* Bottom navigation */}
<nav
className="flex items-center justify-between px-4 py-3 sm:px-6"
className="flex items-center justify-between px-4 pt-3 pb-[calc(0.75rem+env(safe-area-inset-bottom))] sm:px-6"
style={{ borderTop: "1px solid var(--border)" }}
>
{hasPrev ? (
Expand Down
Loading