Skip to content

Prevent code block text overflow on mobile devices#4

Open
jtemporal wants to merge 6 commits into
badger:mainfrom
jtemporal:fix-code-block-overflow
Open

Prevent code block text overflow on mobile devices#4
jtemporal wants to merge 6 commits into
badger:mainfrom
jtemporal:fix-code-block-overflow

Conversation

@jtemporal

@jtemporal jtemporal commented Oct 28, 2025

Copy link
Copy Markdown

Add classes to ensure code blocks scroll horizontally instead of overflowing their container, fixing text spilling outside boundaries on mobile and narrow viewports.

before:
Screenshot 2025-10-28 at 4 48 57 AM

now:
Screenshot 2025-10-28 at 4 49 20 AM

- Add overflow-x-auto and max-w-full classes to pre elements
- Add whitespace-pre and overflow-x-auto classes to code elements
- Ensures code blocks scroll horizontally instead of overflowing container
- Fixes text spilling outside boundaries on mobile/narrow viewports
Copilot AI review requested due to automatic review settings October 28, 2025 11:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes code block text overflow issues on mobile and narrow viewports by adding horizontal scrolling classes to three code blocks on the apps page.

  • Added max-w-full and overflow-x-auto to <pre> elements
  • Added block, whitespace-pre, and overflow-x-auto to <code> elements
  • Ensures code blocks scroll horizontally instead of breaking layout boundaries

Comment thread src/pages/apps.astro Outdated
Comment thread src/pages/apps.astro Outdated
Comment thread src/pages/apps.astro Outdated
@jtemporal jtemporal requested a review from Copilot October 28, 2025 11:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread src/pages/apps.astro Outdated
@jtemporal jtemporal requested a review from Copilot October 28, 2025 11:59

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread src/styles/globals.css
@jtemporal jtemporal requested a review from Copilot October 28, 2025 12:03

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread src/styles/globals.css Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@jtemporal jtemporal requested a review from Copilot October 28, 2025 12:07

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread src/styles/globals.css Outdated
@jtemporal jtemporal requested a review from Copilot October 28, 2025 12:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants