[GH-ISSUE #3897] [Issue]: Code blocks expand message width on iOS #2108

Closed
opened 2026-10-21 05:45:25 +07:00 by bsakaguchi · 6 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Messages containing code-formatted text expand beyond the mobile viewport on iOS, making the message difficult or impossible to read.

Expected behavior

Code-formatted text should wrap or remain within the message container without affecting the readable width of the message.

Actual behavior

The text field expands to the width of the content inside the code block, causing the message block to extend beyond the mobile viewport and become unreadable.

Steps to reproduce

  1. Open Marinara Engine on an iOS device.
  2. View or create a message containing text enclosed in backticks.
  3. Observe that the message field expands to match the width of the code-formatted content.

Environment

  • Marinara Engine version: Not provided
  • Install type: Not provided
  • OS + version: iOS, version not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

No screenshot, video, or logs were provided.

Additional context

The reporter stated that this occurs with any kind of code block or content enclosed in backticks.

Discord thread: [Bug] When putting in any kind of code block - messes up display on mobile
Discord thread link: https://discord.com/channels/1417099416812392641/1529076190516613180
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (1 message)
[2026-07-21T10:42:52.681Z] CrispyAIUnicorn: Don't have a screenshot, but essentially when you have a code block within a message - anything between ``, it makes the text field just expand out to the width of the info within the codeblock, resulting in being unable to read the message block at all.  This is on iOS
[Discord message: https://discord.com/channels/1417099416812392641/1529076190516613180/1529076190516613180]

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 21, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3897 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Messages containing code-formatted text expand beyond the mobile viewport on iOS, making the message difficult or impossible to read. ## Expected behavior Code-formatted text should wrap or remain within the message container without affecting the readable width of the message. ## Actual behavior The text field expands to the width of the content inside the code block, causing the message block to extend beyond the mobile viewport and become unreadable. ## Steps to reproduce 1. Open Marinara Engine on an iOS device. 2. View or create a message containing text enclosed in backticks. 3. Observe that the message field expands to match the width of the code-formatted content. ## Environment - Marinara Engine version: Not provided - Install type: Not provided - OS + version: iOS, version not provided - Browser or app shell: Not provided ## Logs, screenshots, or video No screenshot, video, or logs were provided. ## Additional context The reporter stated that this occurs with any kind of code block or content enclosed in backticks. Discord thread: [Bug] When putting in any kind of code block - messes up display on mobile Discord thread link: https://discord.com/channels/1417099416812392641/1529076190516613180 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (1 message)</summary> ```text [2026-07-21T10:42:52.681Z] CrispyAIUnicorn: Don't have a screenshot, but essentially when you have a code block within a message - anything between ``, it makes the text field just expand out to the width of the info within the codeblock, resulting in being unable to read the message block at all. This is on iOS [Discord message: https://discord.com/channels/1417099416812392641/1529076190516613180/1529076190516613180] ``` </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:45:25 +07:00
  • closed this issue
  • added the
    in-pr
    bug
    labels
Author
Owner

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

Claimed for implementation by @SpicyMarinara in draft PR #3896.

<!-- gh-comment-id:5033048928 --> @SpicyMarinara commented on GitHub (Jul 21, 2026): Claimed for implementation by @SpicyMarinara in draft PR #3896.
Author
Owner

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

Reopened after staging verification: inline code is contained, but fenced code blocks still widen the message. Follow-up work is starting from current staging.

<!-- gh-comment-id:5033453142 --> @SpicyMarinara commented on GitHub (Jul 21, 2026): Reopened after staging verification: inline code is contained, but fenced code blocks still widen the message. Follow-up work is starting from current staging.
Author
Owner

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

Follow-up fix is in draft PR #3899 against staging.

<!-- gh-comment-id:5033620439 --> @SpicyMarinara commented on GitHub (Jul 21, 2026): Follow-up fix is in draft PR #3899 against staging.
Author
Owner

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

Re-opening, since the text in ` or ``` doesn't wrap on mobiles.

<!-- gh-comment-id:5037772593 --> @SpicyMarinara commented on GitHub (Jul 21, 2026): Re-opening, since the text in ` or ``` doesn't wrap on mobiles.
Author
Owner

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

Claimed by @SpicyMarinara for the current all-open-issues sweep in draft PR #3927.

<!-- gh-comment-id:5038720154 --> @SpicyMarinara commented on GitHub (Jul 21, 2026): Claimed by @SpicyMarinara for the current all-open-issues sweep in draft PR #3927.
Author
Owner

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

Addressed in draft PR #3927. Mobile inline and fenced code now wrap within the message width, with a targeted 390px Roleplay browser regression.

<!-- gh-comment-id:5038825165 --> @SpicyMarinara commented on GitHub (Jul 21, 2026): Addressed in draft PR #3927. Mobile inline and fenced code now wrap within the message width, with a targeted 390px Roleplay browser regression.
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#2108
No description provided.