Page MenuHomePhabricator

Homepage: widescreen homepage is stretched
Closed, ResolvedPublic

Description

In the screenshot below, you can see how the homepage looks when using a widescreen monitor.

image.png (1×2 px, 462 KB)

All the modules are really widely stretched. I wonder if there is a way to display them so that they have a maximum width or something. This is not needed for the May 2 release.

Event Timeline

MMiller_WMF created this task.

Assigning this first to @Cntlsn for him to make a recommendation. Note: this is not needed for the May 2 initial release.

@MMiller_WMF It could "temporarily" be fixed with

.growthexperiments-homepage-container {
  max-width: 1215px;
}

And I think it could make it to the May 2 release, @Catrope what do you think?

Change 507013 had a related patch set uploaded (by Sbisson; owner: Sbisson):
[mediawiki/extensions/GrowthExperiments@master] Homepage: UI fixes

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

I've made a patch to set max-width: 1215px; and min-width: 860px; to prevent the content from overlapping on small screens.

Change 507013 merged by jenkins-bot:
[mediawiki/extensions/GrowthExperiments@master] Homepage: UI fixes

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

@SBisson Sounds great, thx!

About smaller screens:
May I suggest to have

.growthexperiments-homepage-container {
    max-width: 1215px;
    min-width: 800px;
}

And for screens<=1024px have

.growthexperiments-homepage-group-main {
    width: 100%;
}
.growthexperiments-homepage-container {
    flex-direction: column;
}
.growthexperiments-homepage-group-sidebar .growthexperiments-homepage-module {
    margin-left: 0;
}

So that we support up to 1024px resolution by having the modules in their "normal" size.

How would we deal with the viewport for <1024px screens until the mobile styling is released?

Change 507086 had a related patch set uploaded (by Sbisson; owner: Sbisson):
[mediawiki/extensions/GrowthExperiments@master] Move the help module to the bottom on small screens

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

Change 507086 merged by jenkins-bot:
[mediawiki/extensions/GrowthExperiments@master] Move the help module to the bottom on small screens

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

Full-screen on 25-inch monitor

Screen Shot 2019-05-01 at 5.26.46 PM.png (1×2 px, 370 KB)