Skip to content

Fix mobile responsiveness for writeup pages - #1

Merged
SamPease merged 2 commits into
mainfrom
claude/mobile-responsiveness-vdf0l2
Jun 10, 2026
Merged

Fix mobile responsiveness for writeup pages#1
SamPease merged 2 commits into
mainfrom
claude/mobile-responsiveness-vdf0l2

Conversation

@SamPease

Copy link
Copy Markdown
Owner
  • Add initial-scale=1 to viewport meta tag
  • Reduce site-shell horizontal padding on mobile (0.75rem sides)
  • Constrain images to viewport width (max-width: 100%, height: auto)
  • Enable horizontal scroll on code blocks and tables to prevent overflow
  • Apply word-break to inline code to prevent text overflow

https://claude.ai/code/session_019quyqjFfmz5Wj82u2Q7UfM

claude added 2 commits June 10, 2026 03:27
- Add initial-scale=1 to viewport meta tag
- Reduce site-shell horizontal padding on mobile (0.75rem sides)
- Constrain images to viewport width (max-width: 100%, height: auto)
- Enable horizontal scroll on code blocks and tables to prevent overflow
- Apply word-break to inline code to prevent text overflow

https://claude.ai/code/session_019quyqjFfmz5Wj82u2Q7UfM
Copilot AI review requested due to automatic review settings June 10, 2026 03:28
@SamPease
SamPease merged commit 8e1d678 into main Jun 10, 2026
1 check passed
@SamPease
SamPease deleted the claude/mobile-responsiveness-vdf0l2 branch June 10, 2026 03:29

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 improves mobile responsiveness across project writeup pages by tightening viewport configuration and adding overflow-safe styling for common rich-content elements (images, code blocks, tables).

Changes:

  • Updates the global viewport meta tag to include initial-scale=1.
  • Adjusts mobile .site-shell padding to reduce horizontal spacing on smaller screens.
  • Adds writeup-body styling to constrain images, enable horizontal scrolling for pre/table, and prevent long inline code from overflowing.

Reviewed changes

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

File Description
src/pages/project-writeups/[...slug].astro Adds responsive overflow and sizing rules for writeup content (images, code blocks, inline code, tables).
src/layouts/BaseLayout.astro Updates viewport meta and tweaks mobile padding for the site shell.
package-lock.json Updates lockfile metadata (adds root engines and removes several libc entries).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +162 to +164
.writeup-body :global(code) {
word-break: break-word;
}
Comment on lines +166 to +168
.writeup-body :global(pre code) {
word-break: normal;
}
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.

3 participants