Fix card list UI layout shifts (jumps) on load
This commit fixes layout shifts that occur on card list part of the page when the page is initially loaded. - Resolve issue where card list starts with minimal width, leading to jumps in UI until correct width is calculated on medium and big screens. - Dispose of existing `ResizeObserver` properly before creating a new one. This prevents leaks and incorrect width calculations if `containerElement` changes. - Throttle resize events to minimize width/height calculation changes, enhancing performance and reducing the chances for layout shifts. Supporting CI/CD improvements: - Enable artifact upload in CI/CD even if E2E tests fail. - Distinguish uploaded artifacts by operating system for clarity.
This commit is contained in:
3
tests/e2e/shared/ApplicationLoad.ts
Normal file
3
tests/e2e/shared/ApplicationLoad.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export function waitForHeaderBrandTitle() {
|
||||
cy.contains('h1', 'privacy.sexy');
|
||||
}
|
||||
Reference in New Issue
Block a user