diff --git a/public/styles/style.css b/public/styles/style.css
index 685fba80..673a2c31 100644
--- a/public/styles/style.css
+++ b/public/styles/style.css
@@ -850,8 +850,8 @@ NoMeshesPanel img {
.deviceBatterySmall {
position:absolute;
- left:20px;
- top:28px;
+ left:26px;
+ top:32px;
width:14px;
height:24px;
border:none;
@@ -1929,6 +1929,23 @@ a {
width: 180px;
}
+.g1t {
+ background-position: 0% 0%;
+ width: 14px;
+ height: 100%;
+ /* fallback (Opera) */
+ /* Mozilla: */
+ /* Chrome, Safari:*/
+ background-image: linear-gradient(to right, #fff 0%, #c9c9c9 100%);
+ background-color: #c9c9c9;
+ background-repeat: repeat;
+ background-attachment: scroll;
+}
+
+.night .g1t {
+ background-image: linear-gradient(to right, #000 0%, #333 100%);
+}
+
.g1 {
background-position: 0% 0%;
width: 14px;
@@ -1972,6 +1989,23 @@ a {
background-image: linear-gradient(to right, #000 0%, #444 100%);
}
+.g2t {
+ background-position: 0% 0%;
+ width: 14px;
+ height: 100%;
+ /* fallback (Opera) */
+ /* Mozilla: */
+ /* Chrome, Safari:*/
+ background-image: linear-gradient(to right, #c9c9c9 0%, #fff 100%);
+ background-color: #c9c9c9;
+ background-repeat: repeat;
+ background-attachment: scroll;
+}
+
+.night .g2t {
+ background-image: linear-gradient(to right, #333 0%, #000 100%);
+}
+
.g2 {
background-position: 0% 0%;
width: 14px;
@@ -2068,6 +2102,15 @@ a {
background-image: linear-gradient(to right, #333 0%, #000 100%);
}
+.e1t {
+ font-size: large;
+ margin-bottom: 3px;
+ overflow: hidden;
+ word-wrap: hyphenate;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+}
+
.e1 {
font-size: large;
margin-top: 4px;
@@ -2089,6 +2132,16 @@ a {
background-color: #333;
}
+.e2t {
+ height: 100%;
+ background-color: #c9c9c9;
+}
+
+.night .e2t {
+ color: #CCC;
+ background-color: #333;
+}
+
.e2s {
background-color: #b9b9b9;
}
diff --git a/views/default.handlebars b/views/default.handlebars
index 2c5d862a..4faa8ebe 100644
--- a/views/default.handlebars
+++ b/views/default.handlebars
@@ -3509,14 +3509,14 @@
setSessionActivity();
var view = Q('viewselect').value;
if (view == 1) {
- var e = element.children[1].children[1];
- e.children[0].classList.remove('g1s');
- e.children[1].classList.remove('e2s');
- e.children[2].classList.remove('g2s');
+ var e = element.children[0].children[0].children[1].children[0].children[0].children[0];
+ e.children[1].classList.remove('g1s');
+ e.children[2].classList.remove('e2s');
+ e.children[3].classList.remove('g2s');
if (over == 1) {
- e.children[0].classList.add('g1s');
- e.children[1].classList.add('e2s');
- e.children[2].classList.add('g2s');
+ e.children[1].classList.add('g1s');
+ e.children[2].classList.add('e2s');
+ e.children[3].classList.add('g2s');
}
} else if (view == 2) {
var e = element;
@@ -3978,7 +3978,7 @@
if ((!node.conn) || (node.conn == 0)) { icon += ' gray'; }
if (view == 1) {
- div.innerHTML = '
' + name + '
' + NodeStateStr(node) + '
' + devNotify + '
';
+ div.innerHTML = ' | | | ' + name + ' ' + NodeStateStr(node) + ' | |
|
' + devNotify;
} else if (view == 2) {
var states = [];
if (node.conn) {
@@ -4600,6 +4600,7 @@
if ((node.conn & 16) != 0) { states.push('' + "MQTT" + ''); }
}
if ((node.pwr != null) && (node.pwr != 0)) { states.push(powerStateStrings[node.pwr]); }
+ if (states.length == 0) return ' ';
return states.join(', ');
}
@@ -5017,7 +5018,12 @@
showContextMenuDiv(contextmenudiv, event.pageX, event.pageY);
// Get the node and set the menu options
- var nodeid = contextelement.children[1].attributes.onclick.value;
+ var nodeid;
+ if (Q('viewselect').value == 1) {
+ nodeid = contextelement.children[0].children[0].children[1].children[0].attributes.onclick.value;
+ } else {
+ nodeid = contextelement.children[1].attributes.onclick.value;
+ }
var node = getNodeFromId(nodeid.substring(12, nodeid.length - 18));
var mesh = meshes[node.meshid];
var rights = GetNodeRights(node);
@@ -5059,7 +5065,12 @@
}
function cmaction(action,event) {
- var nodeid = contextelement.children[1].attributes.onclick.value;
+ var nodeid;
+ if (Q('viewselect').value == 1) {
+ nodeid = contextelement.children[0].children[0].children[1].children[0].attributes.onclick.value;
+ } else {
+ nodeid = contextelement.children[1].attributes.onclick.value;
+ }
nodeid = nodeid.substring(12, nodeid.length - 18);
if (action == 9) { Q('viewselect').value = 3; Q('viewselect').onchange(); Q('autoConnectDesktopCheckbox').checked = true; Q('autoConnectDesktopCheckbox').onclick(); } // Multi-Desktop
if ((action > 0) && (action < 9)) {