nav safe inset and text highlight

This commit is contained in:
lemonknowsall committed 2025-09-25 21:29:26 -07:00
1 parent 7348aaf9ce
commit fb12bda5fa
3 files changed
+34 -9

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
<title>Shakespeare - AI-Powered Nostr Development</title>
<meta name="description" content="Build custom Nostr websites with AI assistance using Shakespeare, an AI-powered development environment">
<meta property="og:type" content="website">
+25
View File
@@ -247,6 +247,31 @@
max-height: 100dvh;
}
/* iOS Safe Area Support */
.safe-area-inset-bottom {
padding-bottom: env(safe-area-inset-bottom);
}
.safe-area-inset-top {
padding-top: env(safe-area-inset-top);
}
/* Mobile navigation button styles - text/icon highlighting only */
.mobile-nav-button,
.mobile-nav-button:hover,
.mobile-nav-button:active,
.mobile-nav-button-active,
.mobile-nav-button-active:hover,
.mobile-nav-button-active:active {
background-color: transparent !important;
}
.mobile-nav-button-active,
.mobile-nav-button-active:hover,
.mobile-nav-button-active:active {
color: hsl(var(--primary)) !important;
}
pre.shiki {
background-color: transparent !important;
}
+8 -8
View File
@@ -121,7 +121,7 @@ export function ProjectView() {
if (isMobile) {
return (
<div className="h-dvh flex flex-col bg-background">
<div className="h-dvh flex flex-col bg-background safe-area-inset-top">
<header className="overflow-hidden border-b bg-gradient-to-r from-primary/10 via-accent/5 to-primary/10 backdrop-blur supports-[backdrop-filter]:bg-gradient-to-r supports-[backdrop-filter]:from-primary/10 supports-[backdrop-filter]:via-accent/5 supports-[backdrop-filter]:to-primary/10 px-4 py-3 flex items-center justify-between">
<div className="flex items-center space-x-2 overflow-hidden">
<Button
@@ -239,13 +239,13 @@ export function ProjectView() {
)}
</div>
<div className="border-t bg-gradient-to-r from-primary/5 via-background to-accent/5 backdrop-blur">
<div className="border-t bg-gradient-to-r from-primary/5 via-background to-accent/5 backdrop-blur safe-area-inset-bottom">
<div className="flex">
<Button
variant={mobileView === 'chat' ? 'default' : 'ghost'}
variant="ghost"
size="sm"
onClick={() => setMobileView('chat')}
className="flex-1 rounded-none"
className={`flex-1 rounded-none mobile-nav-button ${mobileView === 'chat' ? 'mobile-nav-button-active' : ''}`}
disabled={!project}
>
<MessageSquare className="h-4 w-4 mr-1" />
@@ -253,10 +253,10 @@ export function ProjectView() {
</Button>
{isPreviewable && (
<Button
variant={mobileView === 'preview' ? 'default' : 'ghost'}
variant="ghost"
size="sm"
onClick={() => setMobileView('preview')}
className="flex-1 rounded-none"
className={`flex-1 rounded-none mobile-nav-button ${mobileView === 'preview' ? 'mobile-nav-button-active' : ''}`}
disabled={!project}
>
<Eye className="h-4 w-4 mr-1" />
@@ -264,10 +264,10 @@ export function ProjectView() {
</Button>
)}
<Button
variant={mobileView === 'code' ? 'default' : 'ghost'}
variant="ghost"
size="sm"
onClick={() => setMobileView('code')}
className="flex-1 rounded-none"
className={`flex-1 rounded-none mobile-nav-button ${mobileView === 'code' ? 'mobile-nav-button-active' : ''}`}
disabled={!project}
>
<Code className="h-4 w-4 mr-1" />