Skip to content

Commit 3127d4d

Browse files
author
aemiguel
committed
Fix mobile chat input hidden behind browser chrome, bump v0.1.59
1 parent f3b071f commit 3127d4d

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lore-core"
3-
version = "0.1.58"
3+
version = "0.1.59"
44
edition = "2024"
55
autobins = false
66

src/ui.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ pub fn render_shell(shell: PageShell, content: String) -> String {
7777
<html lang="en">
7878
<head>
7979
<meta charset="utf-8">
80-
<meta name="viewport" content="width=device-width, initial-scale=1">
80+
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
8181
<title>{title}</title>
8282
<style>{styles}</style>
8383
</head>
@@ -5926,6 +5926,7 @@ fn shared_styles(theme: UiTheme, mode: ColorMode) -> String {
59265926
.chat-layout {
59275927
display: flex;
59285928
height: calc(100vh - 65px);
5929+
height: calc(100dvh - 65px);
59295930
overflow: hidden;
59305931
}
59315932
.chat-sidebar {
@@ -6234,7 +6235,7 @@ fn shared_styles(theme: UiTheme, mode: ColorMode) -> String {
62346235
.chat-input-form {
62356236
display: flex;
62366237
gap: var(--s-2);
6237-
padding: var(--s-3) var(--s-4);
6238+
padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom));
62386239
border-top: 1px solid var(--line);
62396240
align-items: flex-end;
62406241
}

0 commit comments

Comments
 (0)