Skip to content

Fix comment textarea causing horizontal scrollbar on mobile#637

Merged
akirk merged 2 commits into
mainfrom
fix/comment-textarea-mobile-overflow
Apr 4, 2026
Merged

Fix comment textarea causing horizontal scrollbar on mobile#637
akirk merged 2 commits into
mainfrom
fix/comment-textarea-mobile-overflow

Conversation

@akirk

@akirk akirk commented Apr 4, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add max-width: 100% and box-sizing: border-box to comment textareas in both the default and Mastodon themes
  • The cols="45" HTML attribute on the ActivityPub comment form textarea was creating an intrinsic width wider than the mobile viewport

Test plan

  • Open a single post with comments on mobile (or narrow viewport)
  • Verify no horizontal scrollbar appears
  • Verify the comment textarea fits within its container
  • Test on both default and Mastodon themes
Changelog
  • Automatically create a changelog entry from the details below

Type

  • Fixed

Message

Fix comment textarea causing horizontal scrollbar on mobile.

Add max-width: 100% and box-sizing: border-box to comment textareas
in both the default and Mastodon themes. The hardcoded cols="45"
attribute on the textarea was making it wider than the viewport.
@github-actions

github-actions Bot commented Apr 4, 2026

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.

@akirk akirk merged commit 8868d85 into main Apr 4, 2026
@akirk akirk deleted the fix/comment-textarea-mobile-overflow branch April 4, 2026 13:39
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