-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Adding loading component #108
Adding loading component #108
Conversation
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.
Overall, this is awesome! Just need some minor changes for aesthetic reasons and code consistency.
src/components/loading.jsx
Outdated
@@ -0,0 +1,12 @@ | |||
import * as React from 'react'; |
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.
Use import React from 'react'
here. #101 explains why.
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.
Sure
src/css/styles.css
Outdated
animation: progress-bar-stripes .5s linear infinite; | ||
} | ||
|
||
.dotdotdot:after { |
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.
Please keep .dotdotdot
class and animation. It's still useful for text as mentioned in #107
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.
Sure
src/css/styles.css
Outdated
margin-left: 20px; | ||
height: 70px; | ||
background-image: url(../img/infinity-loader.svg); | ||
background-repeat: no-repeat; |
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.
Can we add background-position-x: center
instead of using margin-left
? Just preferred aesthetically.
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.
Sure, I'm a terrible noob when talking CSS, could you please share a link about the differences?
Aaah, I see, it moves the loading image at the center, ok!
</div> | ||
</div> | ||
</div> | ||
<div id="web-monitoring-ui-root"></div> |
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.
We should replace that old div.row
with div.loading
here, too.
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 didn't get this one, sorry, I removed the old loading and left it as it was because when loading the page the new loader appears; what should I do?
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.
There is a short amount of time before the React app renders, so I was suggesting that a div.loading
was placed in the root div where the other one was before. It gets quickly replaced anyway, so not a big deal, just me being fussy. I'm working on some loading stuff and I really want to use your loading component, so I'll merge and just add this myself.
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.
Ok I see :)
Great job on everything! Thanks a lot for this! |
New PR as per #106