Skip to content

Commit a181c8b

Browse files
PierreLeGuenclaudeilblackdragon
authored
fix(web): mobile browser bar obscures chat input (#508)
* fix(web): use dvh units to prevent mobile browser bar from obscuring chat input On mobile browsers (Brave/Android, Safari/iOS), the bottom navigation bar covers the chat input because 100vh includes space behind browser chrome. Switch to 100dvh (dynamic viewport height) with vh fallback for older browsers, and add safe-area-inset padding for notched devices. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Fix padding declaration in chat input style --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: Illia Polosukhin <ilblackdragon@gmail.com>
1 parent 35a79ca commit a181c8b

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/channels/web/static/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8">
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
66
<title>IronClaw</title>
77
<link rel="icon" href="/favicon.ico" type="image/x-icon">
88
<link rel="preconnect" href="https://fonts.googleapis.com">

src/channels/web/static/style.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ body {
3030
background: var(--bg);
3131
color: var(--text);
3232
height: 100vh;
33+
height: 100dvh;
3334
display: flex;
3435
flex-direction: column;
3536
overflow: hidden;
@@ -41,6 +42,7 @@ body {
4142
align-items: center;
4243
justify-content: center;
4344
height: 100vh;
45+
height: 100dvh;
4446
}
4547

4648
.auth-card-login {
@@ -141,6 +143,7 @@ body {
141143
display: none;
142144
flex-direction: column;
143145
height: 100vh;
146+
height: 100dvh;
144147
}
145148

146149
/* Tab Bar */
@@ -987,7 +990,7 @@ body {
987990
/* Chat input */
988991
.chat-input {
989992
display: flex;
990-
padding: 12px 16px;
993+
padding: 12px 16px max(12px, env(safe-area-inset-bottom)) 16px;
991994
gap: 8px;
992995
background: var(--bg-secondary);
993996
border-top: 1px solid var(--border);
@@ -1808,6 +1811,7 @@ body {
18081811
.job-files {
18091812
display: flex;
18101813
height: calc(100vh - 280px);
1814+
height: calc(100dvh - 280px);
18111815
border: 1px solid var(--border);
18121816
border-radius: var(--radius);
18131817
overflow: hidden;

0 commit comments

Comments
 (0)