-
Notifications
You must be signed in to change notification settings - Fork 297
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
Key metrics layout broken at 960px #9911
Comments
Hey @aaemnnosttv I couldn't repeat this today in develop and main, testing both in Safari, Firefox and Chrome. Screen.Recording.2024-12-18.at.09.32.11.movAre there any other conditions to repeat the issue? Is this only in the dist build of the plugin? |
I am unable to reproduce this either. Unassigning myself in order not to trap the issue if someone else wants to give it a try. And I will be on PTO for the first 2 days of the next week as well |
Took a look myself to be triple sure of the findings by @zutigrm and @benbowler and I also do not see the issue on latest develop, tried 960, 970 and 974 width:
![]()
![]()
![]() |
Hey @10upsimon, reviewing your comment above I recall that in my testing I was only able to reproduce the issue when I actually resized the browser window, rather than resizing via the devtools responsive capability, as mentioned in Slack. You might want to give this another try to see if that lets you reproduce this; if not, or if you no longer have capacity for this one, feel free to assign it back to me. |
Thanks @techanvil . I am, however, still unable to reproduce the issue with manual resize. This applies to Chrome, Firefox and Safari on Mac OS Sequoia. Please see attached Gif's showcase resize across said browsers: Chromehttps://p200.p0.n0.cdn.zight.com/items/llueJdxp/fd19466a-e90a-44e0-ae4d-f29ee5a24010.gif Firefoxhttps://p200.p0.n0.cdn.zight.com/items/v1uGeQoG/b59e6506-24b5-4238-8269-6528b5a98007.gif Safarihttps://p200.p0.n0.cdn.zight.com/items/7KuwmkBn/5cc17222-f573-4419-b2b9-6e45d8411f91.gif |
Thanks for the update @10upsimon. Having picked this up again and investigated further I've been able to identify a fix. However, I'd like to ask @aaemnnosttv to take a look at my findings. I've only been able to reproduce this on browsers which have an always-visible scrollbar. Initially, I noticed this while testing on my Linux workstation, but I've been able to reproduce it on a Mac as well by toggling the "show scroll bars" system setting to "always". We are currently using the Note that the Audience Segmentation setup CTA banner is also showing the wrong graphic at the identified viewport range, and this is also fixed by the change outlined above. Currently using Updated to use This seems like a reasonable change to make. However, @aaemnnosttv, as you were also able to reproduce the issue but seemingly in different circumstances, please can you take a look and see if the fix I've identified is applicable to your scenario as well? I'd also be Interested to hear your thoughts in general on the suggested fix. Here a PoC PR for the fix: #9996 |
Sounds good, glad we finally have an issue to address it ❤
Hmm, not sure how I mixed that up but thanks for the correction!
Sure, from what I remember I was looking at a repo that hadn't been updated in ~8 years. I can't find it now, but there is this which is what I found initially https://www.npmjs.com/package/react-hook which is pretty close. I'm happy to keep the package if it's maintained and there's good reason to use it over another.
We should probably keep the throttling, and
Great, thank you 👍 IB ✅ |
Thanks @aaemnnosttv!
Although I was suggesting we could swap it out, keeping
Do you mean using the |
@mohitwp @kelvinballoo for whoever picks up this ticket. It's worth noting that the QAB is lacking some important details which are included in the description of the ticket. I know we like to recreate the issue in this scenario and then switch to develop to make sure it has been fixed.
Thought it was worth highlighting here. |
QA Update ⚠
Question - screencast -Latest environment Recording.1753.mp4screencast - Dev environment Recording.1755.mp4Pass Cases |
QA Update ✅Was able to simulate it on my Mac OS on Chrome, Chrome emulator and Firefox. 9911.test.mov |
Bug Description
The key metrics setup CTA has a broken layout between 960-974px
Steps to reproduce
Note that to reliably reproduce the issue it may be necessary to view the site using a browser with always-visible scrollbars.
If using a Mac, set the system setting "Show scroll bars" to "Always", and when using Chrome's responsive devtool view
ensure the device type is set to Desktop ensure the scrollbar is present.
Screenshots
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
useWindowWidth()
hook that usesglobal.innerWidth
instead ofdocument.documentElement.clientWidth
to determine the window width.Test Coverage
useWindowWidth()
hook.QA Brief
Changelog entry
The text was updated successfully, but these errors were encountered: