Skip to content

Commit 0efee19

Browse files
committed
fix: iOS 端安全区布局错误
1 parent 869dbd2 commit 0efee19

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/app/core/record/chat/chat-header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function ChatHeader() {
1818
</div>
1919
<div className="flex items-center justify-center gap-1">
2020
<BotMessageSquare className="!size-4" />
21-
<span className="line-clamp-1 flex-1">{model}</span>
21+
<span className="line-clamp-1 flex-1 lg:flex-none">{model}</span>
2222
<span className="hidden lg:inline">({aiTitle})</span>
2323
</div>
2424
<div className="flex items-center gap-1">

src/app/mobile/mobile-styles.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ input, textarea, select, [contenteditable] {
77
/* Fix for iOS viewport when keyboard appears */
88
@supports (-webkit-touch-callout: none) {
99
html, body {
10-
height: 100vh;
10+
height: 100%;
1111
position: fixed;
1212
overflow: hidden;
1313
-webkit-overflow-scrolling: touch;
@@ -18,10 +18,10 @@ input, textarea, select, [contenteditable] {
1818

1919
/* Fix for Android viewport when keyboard appears */
2020
@media screen and (-webkit-min-device-pixel-ratio:0) {
21-
body {
21+
html, body {
2222
position: fixed;
2323
width: 100%;
24-
height: 100vh;
24+
height: 100%;
2525
overflow: hidden;
2626
padding-top: env(safe-area-inset-top);
2727
padding-bottom: env(safe-area-inset-bottom);

0 commit comments

Comments
 (0)