TKOaly / baseball-bat

Debt Management Service
https://bbat.tko-aly.fi
2 stars 1 forks source link

Fix sidebar behavior on screens exactly 1280px wide #55

Closed dogamak closed 5 months ago

dogamak commented 5 months ago

Previously when using a screen exactly 1280px wide (which is the default for Playwright), the sidebar would display by default and not hover over the page content, but mouse clicks on the page content would cause the sidebar to retract.

Automatic sidebar retraction should only occur when the screen is less than 1280px wide, as this coincides with the CSS breakpoint which causes the sidebar to float above the page content.

This hopefully helps with some of the test flakiness as well.