Page MenuHomePhabricator

Special:EventDetails the View event page button overlaps the content
Closed, ResolvedPublicBUG REPORT

Description

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

Go to Special:EventDetails Event details tab
Make sure that there is enough content on the Event details tab so that it has to scroll

What happens?:

The View event page button overlaps the content on page load at certain breakpoints.

What should have happened instead?:

The View event page button should not overlap the content.

Software version :
1.44.0-alpha (d3463ff)
This is not yet in prod but is reproducible on beta cluster.

Other information (browser name/version, screenshots, etc.):
Chrome Version 131.0.6778.109 (Official Build) (arm64)

Screenshot 2024-12-10 at 5.52.28 PM.png (1,430×1,512 px, 198 KB)

Event Timeline

vaughnwalters updated the task description. (Show Details)
vaughnwalters updated the task description. (Show Details)

Yeah, this is a known issue. It's part of the reason why I first suggested a simple scrollable list in T369182: to avoid similar issues. My understanding is that we would live with the ugliness until the Special:EventDetails is redesigned with a new layout to accommodate the list of wikis. There should have been a task about it, as a follow-up of T369182, but I can't find it. @cmelo @gonyeahialam any ideas on where that task might be?

Okay thanks @Daimona. This button just became sticky as this is not in master yet - seems like a regression to me? Is there a reason it was changed? It does seem worse to me than having it just at the bottom of the list scrollable list. Here's the diff from the pixel test

Screen Recording 2024-12-10 at 6.25.11 PM.gif (1,882×1,544 px, 3 MB)

Okay thanks @Daimona. This button just became sticky as this is not in master yet - seems like a regression to me? Is there a reason it was changed? It does seem worse to me than having it just at the bottom of the list scrollable list.

Yep, it was changed to prevent the height of the box from growing indefinitely when there are many wikis selected. The box is scrollable now.

It looks like this max height that is causing the problem now where it currently isn't in prod?

.mw-body .ext-campaignevents-eventdetails-panel {
    max-height: 32em; }

Okay thanks @Daimona. This button just became sticky as this is not in master yet - seems like a regression to me? Is there a reason it was changed? It does seem worse to me than having it just at the bottom of the list scrollable list.

Yep, it was changed to prevent the height of the box from growing indefinitely when there are many wikis selected. The box is scrollable now.

I wonder how often it will be that there will be many wikis selected?

If we don't anticipate many wikis being selected often, maybe we could revert this since it does affect the UI of Special:EventDetails most of the time? Or... if we don't want to revert this then we can just mark this ticket as declined. Thoughts @ifried @gonyeahialam ?

Hi @ vaughnwalters and @Daimona, as @Daimona already said there is (or at list we should have) a task related to changes needed on the event details, to summarize, the layout (meaning the order the fields appear) will change, @gonyeahialam will work on it, but I couldn't find it too.

Also, this will only happen on some devices, we could solve this by adding different values on:

@media ( min-width: @min-width-breakpoint-tablet ) {
	.mw-body .ext-campaignevents-eventdetails-panel {
		max-height: 32em;
		overflow-y: auto;
	}
}`

We are using the default ones provided by the MediaWiki CSS variables, we could play with the possible values to try to fix it, but there is no guarantee, the closest value I could test to make it work on most scenarios was 950, the @min-width-breakpoint-tablet is something like 640.

Also, this will only happen on some devices, we could solve this by adding different values on: [...]
We are using the default ones provided by the MediaWiki CSS variables, we could play with the possible values to try to fix it, but there is no guarantee, the closest value I could test to make it work on most scenarios was 950, the @min-width-breakpoint-tablet is something like 640.

That wouldn't fix it though. It largely depends on the exact event data (and also things like font / font size). I had this same bug for a few events in my local with the original, custom breakpoints.

Regarding the ticket for improvement, the last decision on it was that Ilana and I would discuss about it but we haven't done that yet. I don't think a ticket was created for it.

Can we not just wrap the button in a footer section and make the content scroll behind it? Similar to the modal popup

Screenshot 2024-12-12 at 10.48.56.png (2,104×1,448 px, 247 KB)

Can we not just wrap the button in a footer section and make the content scroll behind it? Similar to the modal popup

Screenshot 2024-12-12 at 10.48.56.png (2,104×1,448 px, 247 KB)

I think it is a good idea, what do you think @ifried @gonyeahialam

Thanks for this great suggestion, @MHorsey-WMF! I think this solution makes sense (cc @cmelo).

cmelo changed the task status from Open to In Progress.Aug 12 2025, 9:00 PM
cmelo claimed this task.

Change #1178135 had a related patch set uploaded (by Cmelo; author: Cmelo):

[mediawiki/extensions/CampaignEvents@master] Fix 'View event page' button overlap on mobile EventDetails

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

Change #1178135 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] Fix 'View event page' button overlap on page Special:EventDetails

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

✅ The View event page button should not overlap the content.

Full sizemobile
Screen Recording 2025-10-17 at 11.09.28 AM.gif (2,364×1,818 px, 2 MB)
Screen Recording 2025-10-17 at 2.31.46 AM.gif (1,030×1,818 px, 3 MB)

Niiiiice 🎉

Sending to design sign off and you can test with this event: https://en.wikipedia.beta.wmcloud.org/wiki/Special:EventDetails/732

hi @vaughnwalters thank you so much! i think the full size screenshot wasn't attached, can you re-attach it pls? and the beta link is not working for me, do you know why that might be happening? apologies!

hi @vaughnwalters thank you so much! i think the full size screenshot wasn't attached, can you re-attach it pls? and the beta link is not working for me, do you know why that might be happening? apologies!

Hello hello, I have attached the full size screenshot now! And the beta link is working for me correctly right now, is it still not working for you? It not, then the full size gif and the mobile screenshot should still be enough. Thank you!