Skip to content

feat: polish CodeExample layout for narrow (mobile) viewports (Closes #941) - #973

Open
waterWang wants to merge 1 commit into
CalloraOrg:mainfrom
waterWang:feat/polish-codeexample-mobile-941
Open

feat: polish CodeExample layout for narrow (mobile) viewports (Closes #941)#973
waterWang wants to merge 1 commit into
CalloraOrg:mainfrom
waterWang:feat/polish-codeexample-mobile-941

Conversation

@waterWang

Copy link
Copy Markdown

Summary

Polishes the CodeExample component's layout for narrow (mobile) viewports per Issue #941. The mobile breakpoint has been expanded from 375px to 480px to cover a wider range of modern devices (iPhone 14, Pixel 7, Galaxy A series, etc.).

Changes

src/styles/code.css

  • Expanded mobile breakpoint from max-width: 375px to max-width: 480px
  • Merged the intermediate breakpoint (376–480px) into the single mobile breakpoint — all devices ≤480px now get the stacked column layout with 44px tap targets
  • Updated all comments and documentation to reflect the new breakpoint

src/components/CodeExample.tsx

src/components/CodeExample.test.tsx

Verification

NODE_ENV=development npx vitest run src/components/CodeExample.test.tsx
 ✓ 43 tests passed

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.

1 participant