fix: stop layout wobble when the window is resized
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
- drop the global transition:all on .scrollY/.library-items (it animated width/height during every resize) - library grid reacts to width changes only, coalesced in rAF, and measures offsetTop after the new columns are applied - header transitions no longer animate layout properties - disable transitions for 200ms while the OS window is being resized
This commit is contained in:
1 parent
fa29331c1c
commit
08f0ca0df1
4 files changed
+53
-29
No files matched your search
@@ -36,13 +36,21 @@ html {
|
||||
overscroll-behavior: none;
|
||||
}
|
||||
|
||||
// While the OS window is being resized, skip layout transitions so elements
|
||||
// do not chase the new size frame by frame.
|
||||
html.is-resizing *,
|
||||
html.is-resizing *::before,
|
||||
html.is-resizing *::after {
|
||||
transition: none !important;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: "Plus Jakarta Sans Variable",system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
||||
background: $clr-background-default;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
position: relative;
|
||||
width: 100vw;
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
@@ -205,11 +213,6 @@ h1 {
|
||||
padding-bottom: 9em !important;
|
||||
}
|
||||
|
||||
.library-items,
|
||||
.scrollY {
|
||||
transition: all $transition-time-default !important;
|
||||
}
|
||||
|
||||
// Normalize listItemIcons for material symbols
|
||||
.MuiListItemIcon-root {
|
||||
font-size: 24px;
|
||||
|
||||
Reference in new issue
Block a user