diff --git a/package-lock.json b/package-lock.json index e2fec05c..8aea64c8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -79,6 +79,7 @@ "streamdown": "~1.0.0", "tailwind-merge": "^2.5.2", "tailwindcss-animate": "^1.0.7", + "tailwindcss-safe-area": "^0.8.0", "turndown": "^7.2.1", "uri-templates": "^0.2.0", "use-stick-to-bottom": "^1.1.1", @@ -10092,6 +10093,21 @@ "tailwindcss": ">=3.0.0 || insiders" } }, + "node_modules/tailwindcss-safe-area": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/tailwindcss-safe-area/-/tailwindcss-safe-area-0.8.0.tgz", + "integrity": "sha512-OIKZfSvinI9kZ3hduoSxqP8EfW2rXoKvHnNyTDY2zwem06IIRtLcKdMe0nF98o+Xluk5Fy7mmesr1rSXg/wkhA==", + "license": "MIT", + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/mvllow" + }, + "peerDependencies": { + "tailwindcss": "^2.0.0 || >=3.0.0" + } + }, "node_modules/tailwindcss/node_modules/postcss-selector-parser": { "version": "6.1.2", "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz", diff --git a/package.json b/package.json index 8761be75..cfb24d13 100644 --- a/package.json +++ b/package.json @@ -82,6 +82,7 @@ "streamdown": "~1.0.0", "tailwind-merge": "^2.5.2", "tailwindcss-animate": "^1.0.7", + "tailwindcss-safe-area": "^0.8.0", "turndown": "^7.2.1", "uri-templates": "^0.2.0", "use-stick-to-bottom": "^1.1.1", diff --git a/src/components/AppLayout.tsx b/src/components/AppLayout.tsx index cc9552ed..69311d9a 100644 --- a/src/components/AppLayout.tsx +++ b/src/components/AppLayout.tsx @@ -72,20 +72,22 @@ export function AppLayout({ return (
{/* Mobile Header */} -
-
- {showSidebar && ( - - )} +
+
+
+ {showSidebar && ( + + )} +
+ {headerContent}
- {headerContent}
{/* Mobile Sidebar Overlay - show if showSidebar is true and sidebar is visible */} diff --git a/src/components/CreditsDialog.tsx b/src/components/CreditsDialog.tsx index 8b4de085..a9ac5295 100644 --- a/src/components/CreditsDialog.tsx +++ b/src/components/CreditsDialog.tsx @@ -399,7 +399,7 @@ export function CreditsDialog({ open, onOpenChange, provider }: CreditsDialogPro return ( - e.preventDefault()} className="max-w-lg w-full max-h-[75vh] overflow-hidden flex flex-col sm:max-w-lg sm:max-h-[75vh] max-sm:w-full max-sm:h-full max-sm:max-w-none max-sm:max-h-none max-sm:m-0 max-sm:rounded-none"> + e.preventDefault()} className="max-w-lg w-full max-h-[75vh] overflow-hidden flex flex-col sm:max-w-lg sm:max-h-[75vh] max-sm:w-full max-sm:h-dvh-safe max-sm:max-w-none max-sm:max-h-none max-sm:m-0 max-sm:rounded-none"> {lightningInvoice ? ( diff --git a/src/components/OnboardingDialog.tsx b/src/components/OnboardingDialog.tsx index ba098e24..1ab8e51e 100644 --- a/src/components/OnboardingDialog.tsx +++ b/src/components/OnboardingDialog.tsx @@ -171,7 +171,7 @@ export function OnboardingDialog({ open, onOpenChange }: OnboardingDialogProps) return ( <> - + {step === 'open-source' && ( @@ -275,13 +275,15 @@ export function OnboardingDialog({ open, onOpenChange }: OnboardingDialogProps) {step === 'open-source' && (
-

Shakespeare is Open Source software that runs entirely in your web browser

+

+ Shakespeare is Open Source software that runs entirely in your web browser +

-

Your browser connects directly to third-party AI providers of your choice

+

Your device connects directly to third-party AI providers of your choice

@@ -303,7 +305,7 @@ export function OnboardingDialog({ open, onOpenChange }: OnboardingDialogProps)

- Shakespeare is not a cloud service. It's Open Source software that runs in your web browser. + Shakespeare is not a cloud service. It's Open Source software that runs on your device. You agree to the Terms of Service of AI providers you interact with. Shakespeare is provided "as is" without warranty of any kind.

diff --git a/src/components/ProjectSidebar.tsx b/src/components/ProjectSidebar.tsx index ec800bc0..03022f82 100644 --- a/src/components/ProjectSidebar.tsx +++ b/src/components/ProjectSidebar.tsx @@ -131,34 +131,36 @@ export function ProjectSidebar({ return (
{/* Header with Logo */} -
-
- - {(onToggleSidebar || (onClose && isMobile)) && ( -
- -
- )} +
+
+
+ + {(onToggleSidebar || (onClose && isMobile)) && ( +
+ +
+ )} +
@@ -229,8 +231,8 @@ export function ProjectSidebar({
{/* Settings and Help at Bottom */} -
-
+
+
- -
); } \ No newline at end of file diff --git a/src/components/SettingsLayout.tsx b/src/components/SettingsLayout.tsx index 6cf9ea0c..ba1fe434 100644 --- a/src/components/SettingsLayout.tsx +++ b/src/components/SettingsLayout.tsx @@ -120,10 +120,10 @@ export function SettingsLayout() { if (isMobile) { return ( -
+
{/* Mobile Header */} -
-
+
+
+ )} + + +
+ )} + /> +
+ + {/* Content area */} +
+ {hasBuiltProject ? ( +