1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Hide right sidebar on start if screen narrower than 600px

so at last you can see something that looks like Node-RED
This commit is contained in:
dceejay 2015-05-31 12:58:42 +01:00
parent 0658b70631
commit 974ac31d33

View File

@ -141,6 +141,8 @@ RED.sidebar = (function() {
RED.keyboard.add(/* SPACE */ 32,{ctrl:true},function(){RED.menu.setSelected("menu-item-sidebar",!RED.menu.isSelected("menu-item-sidebar"));d3.event.preventDefault();});
showSidebar();
RED.sidebar.info.show();
// hide info bar at start if screen rather narrow...
if ($(window).width() < 600) { toggleSidebar(); }
}
var eventHandler = (function() {