You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 28, 2018. It is now read-only.
One reason the progress bar is on the html element is to prevent it from being replaced when changing pages. This allows it to smoothly finish its animation after the new content is inserted.
I had a need for this too, where I had a sidebar and main content area and wanted the progress bar to appear in the main content area only. I solved it using the following:
html.turbolinks-progress-bar::before {
margin-left: 220px; // where 220px is sidebar width
}
This way you can also alter it responsively as needed.
I could ditch nprogress if we had a parent option for Turbolinks.
https://github.com/rstacruz/nprogress#parent
Sometimes it's useful to be able to set a container where the progress bar will be placed at.
Thanks!
The text was updated successfully, but these errors were encountered: