-
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
Merged
Merged
Changes from 9 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
25ec3f1
Fix LoadingIcon position
cvetankanechevska ce6173f
Set to be visible - only for testing
cvetankanechevska 0a39e0b
Update Release.md
cvetankanechevska cc66f39
Add global-toolbar width to calc
cvetankanechevska 4e479d1
Merge branch 'main' into fix/reposition-loading-indicator
cvetankanechevska 0ef3a0b
Change width reposition value
cvetankanechevska 529c866
Merge branch 'fix/reposition-loading-indicator' of github.com:kedro-o…
cvetankanechevska 25bb5d1
Fix width reposition value
cvetankanechevska dca9dc9
Rename variable
cvetankanechevska 8fdaca2
Return the value
cvetankanechevska 2819de3
Add missing $
cvetankanechevska f935bc1
Merge branch 'main' into fix/reposition-loading-indicator
cvetankanechevska File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,29 @@ | ||
@import '../../styles/variables'; | ||
@import '../../styles/mixins'; | ||
|
||
$sidebar-toolbar-width-closed: $sidebar-width-closed + $global-toolbar-width; | ||
$sidebar-toolbar-width-open: $sidebar-width-open + $global-toolbar-width; | ||
|
||
.pipeline-wrapper { | ||
height: 100%; | ||
} | ||
|
||
.pipeline-wrapper__loading { | ||
align-items: center; | ||
display: flex; | ||
flex-direction: column; | ||
height: 100%; | ||
justify-content: center; | ||
position: absolute; | ||
right: 20px; | ||
bottom: 20px; | ||
top: 0; | ||
transform: translateX($sidebar-toolbar-width-closed); | ||
transition: transform 0.4s ease, width ease 0.4s; | ||
width: calc((100% - #{sidebar-toolbar-width-closed})); | ||
|
||
@media (min-width: $sidebar-width-breakpoint) { | ||
&--sidebar-visible { | ||
transform: translateX($sidebar-toolbar-width-open); | ||
width: calc((100% - #{$sidebar-toolbar-width-open})); | ||
} | ||
} | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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