Page MenuHomePhabricator

File description is padded below WBMI tabs (but not after switching tabs)
Closed, ResolvedPublicBUG REPORT

Description

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

What happens?:
The content below the tabs "File information" and "Structured data" is padded unlike the content above them. If you click the "Structured data" tab, the content below the tabs isn't padded. If you then click the "File information" tab, the content which was previously padded isn't padded anymore.

What should have happened instead?:
The content is not padded from the beginning.

Other information (browser name/version, screenshots, etc.):

file_padding.png (276×305 px, 5 KB)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

It looks like the oo-ui-tabPanelLayout-active class is not present on the active tab on the initial load, and in T337675 we've changed the CSS to rely on this class.

Change 934633 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/WikibaseMediaInfo@master] Mark the active tab on the file page

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

I feel like this should work correctly even without this patch, but I guess it doesn't… 🤷‍♂️

Change 934633 merged by jenkins-bot:

[mediawiki/extensions/WikibaseMediaInfo@master] Mark the active tab on the file page

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

Etonkovidova claimed this task.
Etonkovidova subscribed.

Checked on commons wmf.17:

Screen Shot 2023-07-12 at 5.19.25 PM.png (408×1 px, 63 KB)