[GH-ISSUE #4260] [Issue]: iOS Safari keyboard causes page shift and extra bottom padding #2306

Closed
opened 2026-10-21 05:47:09 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @SpicyMarinara on GitHub (Jul 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4260

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Opening the on-screen keyboard in iOS Safari shifts the page upward by approximately the keyboard height. On staging build e938ee4, the viewport resizes correctly, but extra bottom padding and scrolling issues remain in conversation and roleplay modes.

Expected behavior

Opening the keyboard should reduce the visible viewport height without translating the page or adding extra bottom padding.

Actual behavior

The entire page initially shifts upward when the keyboard opens. On build e938ee4, resizing works correctly, but additional bottom padding remains and the user must manually scroll up.

Steps to reproduce

  1. Open the latest staging Docker deployment in iOS Safari.
  2. Enter conversation mode or roleplay.
  3. Focus a text input to open the on-screen keyboard.
  4. Observe the page position and the extra padding at the bottom.

Environment

  • Marinara Engine version: Latest staging; issue still reproduced on build e938ee4
  • Install type: docker
  • OS + version: iOS; version not provided
  • Browser or app shell: Safari

Logs, screenshots, or video

Reproduction video: IMG_5477.MP4 — https://cdn.discordapp.com/attachments/1531666538396909568/1531697819184926760/IMG_5477.MP4?ex=6a6ad101&is=6a697f81&hm=aa3d1cd995f8c35d8c6ea5ec0f1320d99a8249588b74e056d3e871ee26e2e255&. Proposed fixes: ios-scrolling.patch — https://cdn.discordapp.com/attachments/1531666538396909568/1532004379329040595/ios-scrolling.patch?ex=6a6b45c3&is=6a69f443&hm=19a2a4475f7e55cc21c9bf06b5e83724926c76a4173201f8015ccce5a6e9745e&; ios-safe-area-background.patch — https://cdn.discordapp.com/attachments/1531666538396909568/1532004378729517066/ios-safe-area-background.patch?ex=6a6b45c3&is=6a69f443&hm=a33b4e48c5332d47ed2d675f678c110a522a05485c8ae3a9bd826821626b9f50&.

Additional context

The user reported that the issue is not blocking because they can manually scroll up. They supplied patches intended to fix iOS scrolling and make the safe area use the app background color instead of black. Related issues were previously created as #4218 and #4222.

Discord thread: iOS Safari: Keyboard shifts entire page up
Discord thread link: https://discord.com/channels/1417099416812392641/1531666538396909568
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (14 messages)
[2026-07-28T14:15:59.742Z] eiriol: On latest staging via Docker

When the on-screen keyboard opens in iOS Safari, the entire page is shifted upward by approximately the height of the keyboard. Instead of only reducing the visible viewport height to accommodate the keyboard, the page itself is translated upward, resulting in incorrect layout behavior.

This happens in both conversation mode and roleplay.
[Discord message: https://discord.com/channels/1417099416812392641/1531666538396909568/1531666538396909568]

[2026-07-28T14:26:20.997Z] Marinara: @Professor Mari GitHub Issue
[Discord message: https://discord.com/channels/1417099416812392641/1531666538396909568/1531669144129376447]

[2026-07-28T14:26:31.375Z] Professor Mari [bot]: Skill issue. Made a GitHub issue here: https://github.com/Pasta-Devs/Marinara-Engine/issues/4218
[Issue]: iOS Safari keyboard shifts entire page upward · Issue #42...
Summary Opening the on-screen keyboard in iOS Safari shifts the entire page upward by approximately the keyboard height. This affects both conversation mode and roleplay. Expected behavior The on-s...
[Discord message: https://discord.com/channels/1417099416812392641/1531666538396909568/1531669187657732106]

[2026-07-28T15:54:15.623Z] Marinara: Staging.
[Discord message: https://discord.com/channels/1417099416812392641/1531666538396909568/1531691267514306812]

[2026-07-28T16:20:17.724Z] eiriol: Still seeing on `e938ee4`. Page is resized correctly now, but still additional bottom padding.
[attached file: IMG_5477.MP4 — https://cdn.discordapp.com/attachments/1531666538396909568/1531697819184926760/IMG_5477.MP4?ex=6a6ad101&is=6a697f81&hm=aa3d1cd995f8c35d8c6ea5ec0f1320d99a8249588b74e056d3e871ee26e2e255&]
[Discord message: https://discord.com/channels/1417099416812392641/1531666538396909568/1531697819440910437]

[2026-07-28T16:39:07.201Z] Marinara: @Professor Mari Github Issue
[Discord message: https://discord.com/channels/1417099416812392641/1531666538396909568/1531702556810543165]

[2026-07-28T16:39:19.252Z] Professor Mari [bot]: Skill issue. Made a GitHub issue here: https://github.com/Pasta-Devs/Marinara-Engine/issues/4222
[Issue]: Extra bottom padding remains after page resize · Issue #4...
Summary The page now resizes correctly on build e938ee4, but additional padding remains at the bottom. Expected behavior The page should resize correctly without extra bottom padding. Actual behavi...
[Discord message: https://discord.com/channels/1417099416812392641/1531666538396909568/1531702607356235837]

[2026-07-28T18:06:10.577Z] Marinara: staging.
[Discord message: https://discord.com/channels/1417099416812392641/1531666538396909568/1531724465237397636]

[2026-07-28T19:36:02.167Z] eiriol: Still the same for me
[Discord message: https://discord.com/channels/1417099416812392641/1531666538396909568/1531747079205158942]

[2026-07-28T19:45:32.129Z] Marinara: Can it stay that way or is it super gamebreaking?
[Discord message: https://discord.com/channels/1417099416812392641/1531666538396909568/1531749469798797585]

[2026-07-28T19:57:29.423Z] eiriol: No problem, I can scroll up manually. I'll take a look at it myself when I have time
[Discord message: https://discord.com/channels/1417099416812392641/1531666538396909568/1531752478348148869]

[2026-07-28T20:58:18.856Z] Marinara: Thank you!
[Discord message: https://discord.com/channels/1417099416812392641/1531666538396909568/1531767785179451623]

[2026-07-29T12:38:27.437Z] eiriol: Here is a patch that fixes the iOS scrolling and another that makes the safe area use the app bg color (previously it was black). I don't have a github, can you merge this for me?
[attached file: ios-safe-area-background.patch — https://cdn.discordapp.com/attachments/1531666538396909568/1532004378729517066/ios-safe-area-background.patch?ex=6a6b45c3&is=6a69f443&hm=a33b4e48c5332d47ed2d675f678c110a522a05485c8ae3a9bd826821626b9f50&]
[attached file: ios-scrolling.patch — https://cdn.discordapp.com/attachments/1531666538396909568/1532004379329040595/ios-scrolling.patch?ex=6a6b45c3&is=6a69f443&hm=19a2a4475f7e55cc21c9bf06b5e83724926c76a4173201f8015ccce5a6e9745e&]
[Discord message: https://discord.com/channels/1417099416812392641/1531666538396909568/1532004379916505309]

[2026-07-29T12:47:19.198Z] Marinara: Oh, thank you so much! Gonna check them out!
[Discord message: https://discord.com/channels/1417099416812392641/1531666538396909568/1532006610283663653]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Jul 29, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4260 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Opening the on-screen keyboard in iOS Safari shifts the page upward by approximately the keyboard height. On staging build e938ee4, the viewport resizes correctly, but extra bottom padding and scrolling issues remain in conversation and roleplay modes. ## Expected behavior Opening the keyboard should reduce the visible viewport height without translating the page or adding extra bottom padding. ## Actual behavior The entire page initially shifts upward when the keyboard opens. On build e938ee4, resizing works correctly, but additional bottom padding remains and the user must manually scroll up. ## Steps to reproduce 1. Open the latest staging Docker deployment in iOS Safari. 2. Enter conversation mode or roleplay. 3. Focus a text input to open the on-screen keyboard. 4. Observe the page position and the extra padding at the bottom. ## Environment - Marinara Engine version: Latest staging; issue still reproduced on build e938ee4 - Install type: docker - OS + version: iOS; version not provided - Browser or app shell: Safari ## Logs, screenshots, or video Reproduction video: IMG_5477.MP4 — https://cdn.discordapp.com/attachments/1531666538396909568/1531697819184926760/IMG_5477.MP4?ex=6a6ad101&is=6a697f81&hm=aa3d1cd995f8c35d8c6ea5ec0f1320d99a8249588b74e056d3e871ee26e2e255&. Proposed fixes: ios-scrolling.patch — https://cdn.discordapp.com/attachments/1531666538396909568/1532004379329040595/ios-scrolling.patch?ex=6a6b45c3&is=6a69f443&hm=19a2a4475f7e55cc21c9bf06b5e83724926c76a4173201f8015ccce5a6e9745e&; ios-safe-area-background.patch — https://cdn.discordapp.com/attachments/1531666538396909568/1532004378729517066/ios-safe-area-background.patch?ex=6a6b45c3&is=6a69f443&hm=a33b4e48c5332d47ed2d675f678c110a522a05485c8ae3a9bd826821626b9f50&. ## Additional context The user reported that the issue is not blocking because they can manually scroll up. They supplied patches intended to fix iOS scrolling and make the safe area use the app background color instead of black. Related issues were previously created as #4218 and #4222. Discord thread: iOS Safari: Keyboard shifts entire page up Discord thread link: https://discord.com/channels/1417099416812392641/1531666538396909568 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (14 messages)</summary> ```text [2026-07-28T14:15:59.742Z] eiriol: On latest staging via Docker When the on-screen keyboard opens in iOS Safari, the entire page is shifted upward by approximately the height of the keyboard. Instead of only reducing the visible viewport height to accommodate the keyboard, the page itself is translated upward, resulting in incorrect layout behavior. This happens in both conversation mode and roleplay. [Discord message: https://discord.com/channels/1417099416812392641/1531666538396909568/1531666538396909568] [2026-07-28T14:26:20.997Z] Marinara: @Professor Mari GitHub Issue [Discord message: https://discord.com/channels/1417099416812392641/1531666538396909568/1531669144129376447] [2026-07-28T14:26:31.375Z] Professor Mari [bot]: Skill issue. Made a GitHub issue here: https://github.com/Pasta-Devs/Marinara-Engine/issues/4218 [Issue]: iOS Safari keyboard shifts entire page upward · Issue #42... Summary Opening the on-screen keyboard in iOS Safari shifts the entire page upward by approximately the keyboard height. This affects both conversation mode and roleplay. Expected behavior The on-s... [Discord message: https://discord.com/channels/1417099416812392641/1531666538396909568/1531669187657732106] [2026-07-28T15:54:15.623Z] Marinara: Staging. [Discord message: https://discord.com/channels/1417099416812392641/1531666538396909568/1531691267514306812] [2026-07-28T16:20:17.724Z] eiriol: Still seeing on `e938ee4`. Page is resized correctly now, but still additional bottom padding. [attached file: IMG_5477.MP4 — https://cdn.discordapp.com/attachments/1531666538396909568/1531697819184926760/IMG_5477.MP4?ex=6a6ad101&is=6a697f81&hm=aa3d1cd995f8c35d8c6ea5ec0f1320d99a8249588b74e056d3e871ee26e2e255&] [Discord message: https://discord.com/channels/1417099416812392641/1531666538396909568/1531697819440910437] [2026-07-28T16:39:07.201Z] Marinara: @Professor Mari Github Issue [Discord message: https://discord.com/channels/1417099416812392641/1531666538396909568/1531702556810543165] [2026-07-28T16:39:19.252Z] Professor Mari [bot]: Skill issue. Made a GitHub issue here: https://github.com/Pasta-Devs/Marinara-Engine/issues/4222 [Issue]: Extra bottom padding remains after page resize · Issue #4... Summary The page now resizes correctly on build e938ee4, but additional padding remains at the bottom. Expected behavior The page should resize correctly without extra bottom padding. Actual behavi... [Discord message: https://discord.com/channels/1417099416812392641/1531666538396909568/1531702607356235837] [2026-07-28T18:06:10.577Z] Marinara: staging. [Discord message: https://discord.com/channels/1417099416812392641/1531666538396909568/1531724465237397636] [2026-07-28T19:36:02.167Z] eiriol: Still the same for me [Discord message: https://discord.com/channels/1417099416812392641/1531666538396909568/1531747079205158942] [2026-07-28T19:45:32.129Z] Marinara: Can it stay that way or is it super gamebreaking? [Discord message: https://discord.com/channels/1417099416812392641/1531666538396909568/1531749469798797585] [2026-07-28T19:57:29.423Z] eiriol: No problem, I can scroll up manually. I'll take a look at it myself when I have time [Discord message: https://discord.com/channels/1417099416812392641/1531666538396909568/1531752478348148869] [2026-07-28T20:58:18.856Z] Marinara: Thank you! [Discord message: https://discord.com/channels/1417099416812392641/1531666538396909568/1531767785179451623] [2026-07-29T12:38:27.437Z] eiriol: Here is a patch that fixes the iOS scrolling and another that makes the safe area use the app bg color (previously it was black). I don't have a github, can you merge this for me? [attached file: ios-safe-area-background.patch — https://cdn.discordapp.com/attachments/1531666538396909568/1532004378729517066/ios-safe-area-background.patch?ex=6a6b45c3&is=6a69f443&hm=a33b4e48c5332d47ed2d675f678c110a522a05485c8ae3a9bd826821626b9f50&] [attached file: ios-scrolling.patch — https://cdn.discordapp.com/attachments/1531666538396909568/1532004379329040595/ios-scrolling.patch?ex=6a6b45c3&is=6a69f443&hm=19a2a4475f7e55cc21c9bf06b5e83724926c76a4173201f8015ccce5a6e9745e&] [Discord message: https://discord.com/channels/1417099416812392641/1531666538396909568/1532004379916505309] [2026-07-29T12:47:19.198Z] Marinara: Oh, thank you so much! Gonna check them out! [Discord message: https://discord.com/channels/1417099416812392641/1531666538396909568/1532006610283663653] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:47:09 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Jul 29, 2026):

ios-scrolling.patch

ios-safe-area-background.patch

Patched provided by the user.

<!-- gh-comment-id:5118537243 --> @SpicyMarinara commented on GitHub (Jul 29, 2026): [ios-scrolling.patch](https://github.com/user-attachments/files/30507415/ios-scrolling.patch) [ios-safe-area-background.patch](https://github.com/user-attachments/files/30507418/ios-safe-area-background.patch) Patched provided by the user.
Author
Owner

@SpicyMarinara commented on GitHub (Jul 29, 2026):

Taking this assigned issue in draft PR #4261. I have read and applied both user-supplied patches from the maintainer comment, credited eiriol in the commit and PR, and am adding regression coverage before review.

<!-- gh-comment-id:5118654256 --> @SpicyMarinara commented on GitHub (Jul 29, 2026): Taking this assigned issue in draft PR #4261. I have read and applied both user-supplied patches from the maintainer comment, credited eiriol in the commit and PR, and am adding regression coverage before review.
Author
Owner

@SpicyMarinara commented on GitHub (Jul 29, 2026):

Resolved in #4261 and merged into staging as 1f23ec4e47.

<!-- gh-comment-id:5119612082 --> @SpicyMarinara commented on GitHub (Jul 29, 2026): Resolved in #4261 and merged into `staging` as 1f23ec4e475c83e070751ee241b451abe51e6adc.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#2306
No description provided.