-
Notifications
You must be signed in to change notification settings - Fork 234
COMPASS-1417 Remove loading animation scrollbars #1195
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
Conversation
src/app/loading/style.css
Outdated
width: 100%; | ||
padding-left: 6px; | ||
left: 50%; | ||
margin-left: -26px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume that the width of the loading icon is 26px hence the negative margin offset here?
This should probably be at the very least a locally scoped variable for verbosity or at least have an inline comment as it is not immediately obvious.
I would also consider using display: flex
, height: 100vh
, flex-direction: column
on the parent with flex: 1
and width: 100%
on the child as an alternative, cleaner approach.
7ce6733
to
96d8e1e
Compare
96d8e1e
to
64e2808
Compare
CI is currently blocked on #1201 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks @matt-d-rat 👍 |
So it's easier to inspect its state.
No flexbox needed in this context.
CSS animation appears to be special enough I don't know how to handle it in this context, perhaps it needs another wrapper?
64e2808
to
dbc568d
Compare
* Temporarily disable hiding the loading animation So it's easier to inspect its state. * Remove default 8px margin * Use standard top/left pattern from .sq CSS class * Go back to width: 100% removing margin/padding No flexbox needed in this context. * Remove duplicate text-align * Abstract towards a reusable loading animation component CSS animation appears to be special enough I don't know how to handle it in this context, perhaps it needs another wrapper? * Revert "Temporarily disable hiding the loading animation"
* Temporarily disable hiding the loading animation So it's easier to inspect its state. * Remove default 8px margin * Use standard top/left pattern from .sq CSS class * Go back to width: 100% removing margin/padding No flexbox needed in this context. * Remove duplicate text-align * Abstract towards a reusable loading animation component CSS animation appears to be special enough I don't know how to handle it in this context, perhaps it needs another wrapper? * Revert "Temporarily disable hiding the loading animation"
* Temporarily disable hiding the loading animation So it's easier to inspect its state. * Remove default 8px margin * Use standard top/left pattern from .sq CSS class * Go back to width: 100% removing margin/padding No flexbox needed in this context. * Remove duplicate text-align * Abstract towards a reusable loading animation component CSS animation appears to be special enough I don't know how to handle it in this context, perhaps it needs another wrapper? * Revert "Temporarily disable hiding the loading animation"
… (#1205) * Temporarily disable hiding the loading animation So it's easier to inspect its state. * Remove default 8px margin * Use standard top/left pattern from .sq CSS class * Go back to width: 100% removing margin/padding No flexbox needed in this context. * Remove duplicate text-align * Abstract towards a reusable loading animation component CSS animation appears to be special enough I don't know how to handle it in this context, perhaps it needs another wrapper? * Revert "Temporarily disable hiding the loading animation"
… (#1204) * Temporarily disable hiding the loading animation So it's easier to inspect its state. * Remove default 8px margin * Use standard top/left pattern from .sq CSS class * Go back to width: 100% removing margin/padding No flexbox needed in this context. * Remove duplicate text-align * Abstract towards a reusable loading animation component CSS animation appears to be special enough I don't know how to handle it in this context, perhaps it needs another wrapper? * Revert "Temporarily disable hiding the loading animation"
* Temporarily disable hiding the loading animation So it's easier to inspect its state. * Remove default 8px margin * Use standard top/left pattern from .sq CSS class * Go back to width: 100% removing margin/padding No flexbox needed in this context. * Remove duplicate text-align * Abstract towards a reusable loading animation component CSS animation appears to be special enough I don't know how to handle it in this context, perhaps it needs another wrapper? * Revert "Temporarily disable hiding the loading animation"
macOS - git / local build
Before
After
Ubuntu VM - git / local build
Before
After
Windows VM - Via Evergreen patch build
https://evergreen.mongodb.com/version/598a8b6ae3c331594401b427
After