Octoprint: [Request] Navbar sticky to the top

Created on 24 Jul 2017  路  6Comments  路  Source: OctoPrint/OctoPrint

Hello!
Is it possible to make the navbar sticky to the top?
Maybe selectable if sticky or not in the settings.

Thank you,
Eddy

request

Most helpful comment

I threw together a quick plugin for this. You can find it at the link below.

https://github.com/jneilliii/OctoPrint-FloatingNavbar

All 6 comments

+1 on this. It's _really_ useful to have it always on top, specially when you have all kinds of info on it (by means of plugins that use it to show more info).

This probably should be a plugin itself, and it probably is very simple to make (add some HTML/CSS commands in the right place), but unfortunately my coding skills were not enough to do it.

This can be accomplished with 2 lines of javascript code.

$("#navbar").toggleClass("navbar-fixed-top navbar-static-top");
$("div.container.octoprint-container").css("margin-top","60px");

I threw together a quick plugin for this. You can find it at the link below.

https://github.com/jneilliii/OctoPrint-FloatingNavbar

That is very nice. Thank you.

I guess you know, but anyway: it does not appear on the search inside octoprint nor on the search on the site, yet.

Will try, thanks!!!

I have submitted my plugin to the repository rust show up in plugin manager but it hasn't been accepted yet.

A plugin is now available to do this. See https://plugins.octoprint.org/plugins/floatingnavbar/

Closing

Was this page helpful?
0 / 5 - 0 ratings