Skip to content
Open
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 apps/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@
<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" />
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

viewport-fit=cover added without safe area inset padding

Medium Severity

Adding viewport-fit=cover tells the browser to extend the layout viewport into device safe areas (home indicator, rounded corners), but no env(safe-area-inset-*) padding is applied anywhere in the app's CSS. Previously, without viewport-fit=cover, the browser automatically constrained the viewport to avoid these regions. Now content at the screen edges—especially the bottom home indicator area on modern iPads—can be obscured or hard to interact with in standalone mode.

Additional Locations (1)
Fix in Cursor Fix in Web

<meta name="theme-color" content="#ffffff" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
<meta name="apple-mobile-web-app-title" content="T3 Code" />
<link rel="icon" href="/favicon.ico" sizes="48x48" />
<link rel="manifest" href="/manifest.webmanifest" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
Expand Down
30 changes: 30 additions & 0 deletions apps/web/public/manifest.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "T3 Code",
"short_name": "T3 Code",
"description": "Minimal web GUI for coding agents like Codex and Claude.",
"start_url": "/",
"scope": "/",
"display": "standalone",
"background_color": "#ffffff",
"theme_color": "#ffffff",
"icons": [
{
"src": "/apple-touch-icon.png",
"sizes": "180x180",
"type": "image/png",
"purpose": "any"
},
{
"src": "/favicon-32x32.png",
"sizes": "32x32",
"type": "image/png",
"purpose": "any"
},
{
"src": "/favicon-16x16.png",
"sizes": "16x16",
"type": "image/png",
"purpose": "any"
}
]
}
17 changes: 17 additions & 0 deletions apps/web/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ html,
body,
#root {
height: 100%;
min-height: 100%;
width: 100%;
max-width: 100%;
overflow-y: hidden;
Expand All @@ -145,6 +146,22 @@ body,
overscroll-behavior-y: none;
}

@media (display-mode: standalone), (display-mode: fullscreen) {
html,
body,
#root {
height: 100dvh;
min-height: 100dvh;
}

body {
position: fixed;
inset: 0;
overflow: hidden;
overscroll-behavior: none;
}
}

body::after {
content: "";
position: fixed;
Expand Down
Loading