Page MenuHomePhabricator

Init new topic button on mobile starts after last section even if there is content lower than that
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:
Add topic button takes too much space. It starts at the end of the last section even though there is content actually going below that.

image_2026-02-17_143416409.png (526×401 px, 16 KB)

What should have happened instead?:

Button has its usual size.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):
The issue happens with Parsoid enabled only, because with Parsoid the archives navbox is not inside the "Learn more" button. So I'm not sure whether it is an issue with DiscussionTools or Parsoid or both.
I'm able to fix the issue locally by adding clear: both; to the ext-discussiontools-init-new-topic class.

Event Timeline

DLynch subscribed.

Looks like it's playing poorly with the archives box, which is floated.

Change #1240002 had a related patch set uploaded (by DLynch; author: DLynch):

[mediawiki/extensions/DiscussionTools@master] Mobile new topic button should clear:both to avoid floated content

https://gerrit.wikimedia.org/r/1240002

Change #1240002 merged by jenkins-bot:

[mediawiki/extensions/DiscussionTools@master] Mobile new topic button should clear:both to avoid floated content

https://gerrit.wikimedia.org/r/1240002