This is a regression from https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1066438
Steps to replicate the issue (include links if applicable):
Open editor on some page with template or wikidata item usage or hidden category on a skin other than Vector-2022 like Minerva or MonoBook or Vector
What happens?:
What should have happened instead?:
Like Vector-2022
This perhaps comes from this line in my change, https://gerrit.wikimedia.org/g/mediawiki/core/+/ceeae9b74b416e7beae0bc77a3e4658840343608/resources/src/mediawiki.action/mediawiki.action.edit.collapsibleFooter.less#11 that spacing tries to replicate what <p> has in Vector-2022 which isn't true on other skins it seems.
The patch in https://phabricator.wikimedia.org/T373315#10095621 could fix this but that's blocked to a browser bug apparently.