Closed Bug 1705855 Opened 5 years ago Closed 4 years ago

Proton newtab have way too much padding and cause page scroll

Categories

(Firefox :: New Tab Page, defect, P2)

Firefox 89
defect

Tracking

()

VERIFIED FIXED
90 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox87 --- unaffected
firefox88 --- unaffected
firefox89 --- wontfix
firefox90 --- verified

People

(Reporter: mmis1000, Assigned: bigiri)

References

(Blocks 1 open bug)

Details

(Whiteboard: [proton-aboutpages] [priority:2a])

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0

Steps to reproduce:

  1. open firefox on windows on a screen equal to 1080P with taskbar to always present.
  2. open new tab
  3. open the config on new tab
  4. set the row to 2

Actual results:

The new tab have a useless scrollbar.
All contents are visible, but the extra margin caused a scrollbar.

Expected results:

There shouldn't be a scrollbar when there is only whitespace (did it use margin to replace padding and cause such problem? I remember that Firefox don't cause scrollbar in that case.).

That also happen on my mac 13, but given the dimension is smaller on that device.
The proton design new tab probably didn't handle that at first place and thus not a bug.

The Bugbug bot thinks this bug should belong to the 'Firefox::New Tab Page' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → New Tab Page

Setting this issue to NEW, as I can reproduce it on the latest Nightly 90.0a1 and Firefox 89 beta 1 on Windows 10 x64. I can reproduce the issue regardless if the preference "browser.proton.enabled" is set to true or false. I can't reproduce the issue on Firefox 88.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Has STR: --- → yes
Ever confirmed: true
Whiteboard: [proton-aboutpages]

Agreed that we should make sure that no scroll appears on 768 pixel height @100dpi on windows with a visible taskbar for default configurations.
Jim, I'm marking this one as a P2a but can you please help confirm scrollbar requirements here?

Flags: needinfo?(jimthomas)
Priority: -- → P2
Whiteboard: [proton-aboutpages] → [proton-aboutpages] [priority:2a]

CC'ing some folks from the search & newtab team on this one for discussion

I think we probably shouldn't show the Firefox logo when there's this much content already on the page.

Blocks: 1671177
See Also: → 1677852

There are multiple paddings on new-tab that cause this overflow. I'm sure we can just remove or replace them with margins as mmis1000 suggested :)

Yes, we could reduce paddings, but doesn't the page already look pretty crowded in attachment 9216555 [details]? Seems to me it would benefit overall from the logo being hidden and the three sections being more apart.

That said, even without any changes to the spacing between sections / elements, it looks like the page shouldn't be overflowing in attachment 9216555 [details]. Does removing the bottom margin from .outer-wrapper help? https://searchfox.org/mozilla-central/rev/49e0a928390a8013a4eb08b7b3bbff025f01913a/browser/components/newtab/content-src/components/Base/_Base.scss#9,12

On screens that are 768px high with no display scaling there is still overflow.

If this is critical for 89, we could probably change the .outer-wrapper padding and the main padding and that should do the trick.

Otherwise (or additionally) we can take a closer look at all these paddings and margins with the style changes planned in 90. Check if they all make sense, trim some away and ensure that the layout still looks good on all screen sizes :)

*sigh* I have a hard time following what a "ds outer wrapper breakpoint override" is so I'm hesitant to touch this stuff... My recommendation is still to hide the Firefox logo under certain circumstances -- for a short-term solution, perhaps a media query taking the view port height into account is enough.

I'm wondering if a lot of the extra padding, causing the scrollbar, is coming from padding-bottom: 68px; on main, which I also suspect was there to ensure there is enough space for snippets.

Flags: needinfo?(jimthomas)

(In reply to Scott [:thecount] Downe from comment #12)

I'm wondering if a lot of the extra padding, causing the scrollbar, is coming from padding-bottom: 68px; on main, which I also suspect was there to ensure there is enough space for snippets.

Yeah, I tried looking at this a few days back and this was also my conclusion - minus the space for snippets thing. I just didn't understand why that was there (and where the magical 68px came from), and then apparently forgot to comment here. But if it's just for snippets, presumably it could be applied only when we actually show snippets?

A standard 1 line snippet is roughly 67px, and a two line snippet is 94px.

The first padding height is coming from here: https://searchfox.org/mozilla-central/source/browser/components/newtab/content-src/components/Base/_Base.scss#31 which the comment states, is for snippets.

It looks like this currently resolves to 68px, and the override class has this same value as being static.

I also looked into the history for ds-outer-wrapper-breakpoint-override. There are essentially two sets of breakpoints that can be toggled, depending on the layout. Setting the class on main to ds-outer-wrapper-breakpoint-override triggers the breakpoint set which, is currently used on release. We could probably cleanup the old breakpoint sets and just go with ds-outer-wrapper-breakpoint-override, but I don't think that should happen here.

I think we can leave a lot of this as is, and just have snippets set a class on main if they are active or not, and have both sets of 68px padding bottom select based on that snippet added class.

Assignee: nobody → bigiri

Used media queries to adjust padding when the browser window height is less than 1010px so that unnecessary scrollbars do not appear on newtab.

Status: NEW → ASSIGNED
Attachment #9220674 - Attachment description: Bug 1705855 - Fix newtab padding r=gijs,dao,mardak → Bug 1705855 - Fix newtab padding r=dao,thecount,mardak
Attachment #9220674 - Attachment description: Bug 1705855 - Fix newtab padding r=dao,thecount,mardak → Bug 1705855 - Fix newtab padding r=thecount

Backed out for causing newtab failures

backout: https://hg.mozilla.org/integration/autoland/rev/828795dd416a3f731a1a9de1fed3c624f1757594

push: https://treeherder.mozilla.org/jobs?repo=autoland&searchStr=linux%2C18.04%2Cx64%2Copt%2Cnode%2Ctests%2Csource-test-node-newtab-unit-tests%2Cnewtab&revision=335bbc7eb086a92dba837a931affc0789e920b74&selectedTaskRun=QJdEunjuS---bBibGREo0A.0

failure log: https://treeherder.mozilla.org/logviewer?job_id=340341275&repo=autoland&lineNumber=105

[task 2021-05-20T17:30:15.000Z] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
[task 2021-05-20T17:30:15.000Z]
[task 2021-05-20T17:30:15.005Z] added 1279 packages from 1554 contributors and audited 1358 packages in 25.201s
[task 2021-05-20T17:30:15.691Z]
[task 2021-05-20T17:30:15.692Z] 83 packages are looking for funding
[task 2021-05-20T17:30:15.692Z] run npm fund for details
[task 2021-05-20T17:30:15.692Z]
[task 2021-05-20T17:30:15.693Z] found 37 vulnerabilities (18 low, 5 moderate, 14 high)
[task 2021-05-20T17:30:15.693Z] run npm audit fix to fix them, or npm audit for details
[task 2021-05-20T17:30:16.506Z] + node bin/try-runner.js
[task 2021-05-20T17:30:16.581Z] TEST START | checkBundles
[task 2021-05-20T17:30:27.449Z] TEST-UNEXPECTED-FAIL checkBundles | Activity Stream bundle out of date
[task 2021-05-20T17:30:27.451Z] { checkBundles: false }
[task 2021-05-20T17:30:27.452Z] CODE 1
[taskcluster 2021-05-20 17:30:28.009Z] === Task Finished ===
[taskcluster 2021-05-20 17:30:28.009Z] Unsuccessful task run with exit code: 1 completed in 228.225 seconds

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
Flags: needinfo?(bigiri)

The patch landed in nightly and beta is affected.
:bigiri, is this bug important enough to require an uplift?
If not please set status_beta to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(bigiri)
Flags: needinfo?(bigiri)

I have verified that this issue is no longer reproducible with the latest Firefox Nightly (90.0a1 Build ID - 20210525153449) and the latest Firefox Beta (89.0 Build ID - 20210524222230) installed on Windows 10 x64, Windows 8.1 x64, and Windows 7 x64. Now I can confirm that the scrollbar is no longer displayed if two rows are displayed in the "Shortcuts" section.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: