Skip to content

Fix Mobile Friends Page Welcome Message#567

Merged
akirk merged 2 commits into
mainfrom
claude/fix-mobile-friends-view-011CUU6oyYdYcpYr6Q2g8pwY
Oct 26, 2025
Merged

Fix Mobile Friends Page Welcome Message#567
akirk merged 2 commits into
mainfrom
claude/fix-mobile-friends-view-011CUU6oyYdYcpYr6Q2g8pwY

Conversation

@akirk

@akirk akirk commented Oct 25, 2025

Copy link
Copy Markdown
Owner

The welcome message content now displays properly within the screen boundaries on mobile devices without requiring horizontal scrolling.

🤖 Generated with Claude Code

@akirk akirk force-pushed the claude/fix-mobile-friends-view-011CUU6oyYdYcpYr6Q2g8pwY branch from 8da70f6 to 808a989 Compare October 25, 2025 15:02
@github-actions

github-actions Bot commented Oct 25, 2025

Copy link
Copy Markdown
Contributor

Test this PR in WordPress Playground

You can test this pull request directly in WordPress Playground:

Launch WordPress Playground

This will install and activate the plugin with the changes from this PR.

- Set ul/ol left margin to 0 and padding-left to 1rem on mobile
- Added specific rules for nested lists (ul ul, ol ol, etc.) to prevent compounding margins
- Removed left and right margins on p.note elements on mobile
- Added word-wrap and overflow-wrap for links to handle long URLs gracefully

The nested list structure in the welcome message (with plugin recommendations)
was causing additional overflow on mobile. This fix ensures both top-level and
nested lists, along with long URLs, display properly within screen boundaries.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@akirk akirk force-pushed the claude/fix-mobile-friends-view-011CUU6oyYdYcpYr6Q2g8pwY branch 3 times, most recently from 27f1e4a to dd6c580 Compare October 25, 2025 15:52
The welcome message contains a button with the text "Add Alex Kirk,
creator of the Friends plugin, as a friend now" which was preventing
wrapping due to the default white-space: nowrap on buttons.

Changed buttons within .card-body on mobile devices to:
- white-space: normal (allows text wrapping)
- margin-bottom: 1.2rem (matches paragraph spacing)

This allows the long button text to wrap properly and prevents the
page from overflowing the screen width while maintaining proper
spacing with the following content.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@akirk akirk force-pushed the claude/fix-mobile-friends-view-011CUU6oyYdYcpYr6Q2g8pwY branch from dd6c580 to 8ab872d Compare October 25, 2025 15:55
@akirk akirk requested a review from Copilot October 26, 2025 06:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 a mobile display issue where the welcome message on the Friends page was extending beyond screen boundaries. The fix applies proper text wrapping to buttons and adds spacing, while also enhancing the WordPress Playground testing workflow by setting a default landing page.

  • Adds white-space: normal to buttons to prevent text overflow on mobile
  • Includes bottom margin for better button spacing
  • Updates Playground URL to open directly to the Friends page for easier testing

Reviewed Changes

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

File Description
friends.scss Adds button text wrapping and spacing within .card-body for mobile viewport
.github/workflows/pr-playground-comment.yml Sets landing page to /friends/ in Playground URL for direct navigation

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

@akirk akirk merged commit faf2918 into main Oct 26, 2025
28 checks passed
@akirk akirk deleted the claude/fix-mobile-friends-view-011CUU6oyYdYcpYr6Q2g8pwY branch October 26, 2025 06:36
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