tweak padding and labels

This commit is contained in:
Starbeamrainbowlabs 2022-05-25 03:18:27 +01:00
parent 6c5e27efba
commit b4f603685c
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -59,7 +59,7 @@ class UIGauge extends AbstractUIItem {
color: "white"
},
margin: {
b: 40, l: 40, r: 40, t: 40
b: 80, l: 40, r: 40, t: 40
}
}
@ -112,7 +112,7 @@ class UIGauge extends AbstractUIItem {
append(peer, table) {
super.append(peer, table);
let label = peer.name;
let label = peer.name; //`${peer.name}\n${peer.id.slice(0, 7)}`; // Plotly doesn't support multiline labels :-/
let data_item = null;
switch(typeof this.def.content) {
case "function":