-
Notifications
You must be signed in to change notification settings - Fork 113
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
Reposition Loading Indicator #970
Conversation
Signed-off-by: Cvetanka <[email protected]>
Signed-off-by: Cvetanka <[email protected]>
Signed-off-by: Cvetanka <[email protected]>
Signed-off-by: Cvetanka <[email protected]>
Hey hey, thanks for that! It's pretty much there but the loader is not really central to the flowchart canvas. It should be a bit to the left. The area we should consider is the one marked as this lime colour as seen in the images. Basically the area we should consider as width reference is everything from the end of the utility bar all the way to the right edge of the screen. Many thanks, let me know if you have any questions. |
Signed-off-by: Cvetanka <[email protected]>
…rg/kedro-viz into fix/reposition-loading-indicator Signed-off-by: Cvetanka <[email protected]>
Signed-off-by: Cvetanka <[email protected]>
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.
Looks perfect now, thank you.
$total-sidebar-toolbar-width-closed: $sidebar-width-closed + | ||
$global-toolbar-width; | ||
$total-sidebar-toolbar-width-open: $sidebar-width-open + $global-toolbar-width; |
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.
Nit: I think we can get away without total-
here.
$total-sidebar-toolbar-width-closed: $sidebar-width-closed + | |
$global-toolbar-width; | |
$total-sidebar-toolbar-width-open: $sidebar-width-open + $global-toolbar-width; | |
$sidebar-toolbar-width-closed: $sidebar-width-closed + | |
$global-toolbar-width; | |
$sidebar-toolbar-width-open: $sidebar-width-open + $global-toolbar-width; |
Signed-off-by: Cvetanka <[email protected]>
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.
hi @cvetankanechevska -- for me, even after the flowchart is loaded, the logo still shows in the center and doesn't disappear. I can show it to u on call, if u have some time today.
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!
Signed-off-by: Cvetanka <[email protected]>
bottom: 20px; | ||
top: 0; | ||
transform: translateX($sidebar-toolbar-width-closed); | ||
transition: transform 0.4s ease, width ease 0.4s; |
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.
hey @cvetankanechevska I'm just thinking about whether it needs to transition width
here? It's normally quite bad for the page performance as the property triggers layout or paint 🤔
I'm not sure whether it's possible to just set a fix width and use translate to move it around?
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.
Hey @Huongg, yes we need it to be a smooth reposition when opening/closing the Sidebar
Signed-off-by: Cvetanka <[email protected]>
Signed-off-by: Cvetanka <[email protected]>
Signed-off-by: Cvetanka [email protected]
Description
Fix #779
Development notes
Style fix for positioning LoadingIcon to the center of Flowchart and make it responsive as Sidebar can be open/close.
QA notes
I hardcoded the value so it can be visible for testing. After this PR is approved, I will return it as it was.
Checklist
RELEASE.md
file