Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Menu flickers at certain window dimensions #791

Open
PC-Principal opened this issue Dec 21, 2023 · 9 comments
Open

Menu flickers at certain window dimensions #791

PC-Principal opened this issue Dec 21, 2023 · 9 comments
Labels
bug Something isn't working

Comments

@PC-Principal
Copy link

Describe the Issue

While the data in the interface is loading on https://tarkov.dev/, the navigation bar on the right side of the screen behaves strangely, you can see an example in the video (Extra Information).

Expected Behavior

When loading page data, the button should not behave as if it does not have enough space on the screen.

To Reproduce

This happens sometimes, you can try reloading the page.

Client

Desktop

Browser

Chrome

Relevant Console Log Output

No response

Extra Information

Link on video with that bug: https://www.youtube.com/watch?v=G1S9IcG5NJU

About soft:
Windows 10
Google Chrome versions: 120.0.6099.110

@PC-Principal PC-Principal added the bug Something isn't working label Dec 21, 2023
@PC-Principal PC-Principal changed the title Bug on site while data loading Bug with menu on site while data loading Dec 21, 2023
@Razzmatazzz
Copy link
Member

@PC-Principal I'm having trouble reproducing this issue. What screen resolution are you using?

@Razzmatazzz
Copy link
Member

Nevermind; I've reproduced it.

@Razzmatazzz
Copy link
Member

@the-hideout/reviewers do any of you know why the relevant css selectors wouldn't be working for chromium-based web browsers? It works as it should on Firefox.

@Razzmatazzz
Copy link
Member

Razzmatazzz commented Dec 23, 2023

This bug only seems to appear in chromium browsers when the site is deployed (prod or dev). It does not appear in chromium browsers in local testing. It does not appear in Firefox in local testing or when deployed.

@GrantBirki
Copy link
Member

I use a chromium based browser (Brave) and I just confirmed the behavior on my end as well. As to why this is occurring.. I don't really know unfortunately

@GrantBirki
Copy link
Member

Here is a guess though if we think its related to CSS and only occurs on certain browsers (I could be completely wrong).

Each browser is shipped with its own built in (or default) CSS "settings". If some CSS settings fail to load or don't have defined values, sometimes these browser defaults can take over. Perhaps the Firefox defaults do not cause issues here but the chromium based defaults are being applied during page load that is causing this visual artifact.


This is pretty much just a guess but it was my first initial hunch.

@Razzmatazzz
Copy link
Member

For anyone experiencing this bug, it appears only when the width of the browser is set to very specific dimensions. You should be able to make it disappear by resizing the width of the window a bit. That's not a solution, of course, but just a temporary workaround.

@Razzmatazzz Razzmatazzz changed the title Bug with menu on site while data loading Menu flickers at certain window dimensions Jan 23, 2024
@alefranz
Copy link

alefranz commented Feb 11, 2024

This seems easy to reproduce on a 1440p screen set vertically, as that width trigger the bug (on pages that don't have a scroll bar)

@jklamert
Copy link

I had this happen on my first page load. Disabling this stopped the flicker in Brave:
nav.navigation ul.menu li:nth-last-child(1 of li.visible-menu-item):not(:nth-last-child(1 of li.overflow-member)) { /* padding-right: 50px; */ }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants