fix bootstrap padding #6755

Signed-off-by: si458 <simonsmith5521@gmail.com>

si458 committed Feb 27, 2025 at 18:08 UTC 42f61ea46ee2499cb3f104bbd5c547465ef56ab1
3 files changed +9 -31
public/styles/style-bootstrap.css
+7 -3
@@ -703,6 +703,10 @@ body {
703 text-align: center;
704 }
705
706 +.DeviceCheckbox {
707 + margin-top: 2px !important;
708 +}
709 +
710 .deviceBarCheckbox {
711 width:22px;
712 float:left;
@@ -823,15 +827,15 @@ NoMeshesPanel img {
827 .deviceNotifySmallDot {
828 position:absolute;
829 right:10px;
826 - top:0px;
830 + top:4px;
831 height:10px;
832 }
833
834 .deviceNotifySmallDotSub {
835 text-align:center;
836 color:#FFF;
833 - height:10px;
834 - width:10px;
837 + height:14px;
838 + width:14px;
839 padding:2px;
840 background-color:#00F;
841 border-radius:10px;
translate/translate.json
-26
@@ -26609,32 +26609,6 @@
26609 "default3.handlebars->35->3234"
26610 ]
26611 },
26612 - {
26613 - "bs": "DeviceCheckbox",
26614 - "ca": "Casilla de verificació del dispositiu",
26615 - "cs": "DeviceCheckbox",
26616 - "da": "Enheds Checkbox",
26617 - "de": "DeviceCheckbox",
26618 - "en": "DeviceCheckbox",
26619 - "es": "Casilla de Verificación del Dispositivo",
26620 - "fi": "LaitteenValintaruutu",
26621 - "fr": "DeviceCheckbox",
26622 - "hi": "DeviceCheckbox",
26623 - "hu": "DeviceCheckbox",
26624 - "it": "Casella di controllo del dispositivo",
26625 - "ja": "DeviceCheckbox",
26626 - "ko": "장치 체크 박스",
26627 - "nl": "DeviceCheckbox",
26628 - "pl": "Pole wyboru urządzenia",
26629 - "pt": "DeviceCheckbox",
26630 - "pt-br": "DeviceCheckbox",
26631 - "ru": "DeviceCheckbox",
26632 - "sv": "DeviceCheckbox",
26633 - "tr": "DeviceCheckbox",
26634 - "zh-chs": "设备复选框",
26635 - "zh-cht": "裝置複選框",
26636 - "uk": "Прапорець Пристрою"
26637 - },
26612 {
26613 "bs": "Uređaji",
26614 "ca": "Dispositius",
views/default3.handlebars
+2 -2
@@ -5381,7 +5381,7 @@
5381 }
5382 }
5383
5384 - if (node.desc && (deviceViewSettings.devsCols.indexOf('desc') >= 0)) { name = '<div style=float:right' + (stars[node._id] == 1 ? ';padding-right:15px' : '') + '>' + EscapeHtml(node.desc) + '</div><div>' + name + '</div>'; }
5384 + if (node.desc && (deviceViewSettings.devsCols.indexOf('desc') >= 0)) { name = '<div class="flex-grow-1">' + name + '</div><div style=float:right' + (stars[node._id] == 1 ? ';padding-right:15px' : '') + '>' + EscapeHtml(node.desc) + '</div>'; }
5385
5386 var collapseName = node.meshid;
5387 if (sort == 1) { collapseName = ('pwr:' + (node.pwr ? node.pwr : 0)); }
@@ -5391,7 +5391,7 @@
5391 r += '<div class=deviceBarCheckbox><input class="' + node.meshid + ' DeviceCheckbox form-check-input me-2" value=devid_' + node._id + ' type=checkbox onchange=p1devcheck(event) ' + (checkedNodeids[node._id] ? ' checked' : '') + '></div>';
5392 r += '<div class=deviceBarIcon onmouseup=gotoDevice(\'' + node._id + '\',null,null,event)><div class="j' + icon + '" style=width:16px;margin-top:1px;margin-left:2px;height:16px></div></div>';
5393 r += '<div class=g1 style=height:18px;float:left></div><div class=g2 style=height:18px;float:right></div>';
5394 - r += '<div class=style10 style=cursor:pointer;font-size:14px;max-height:18px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap title="' + title + '" onmouseup=gotoDevice(\'' + node._id + '\',null,null,event)>' + name + '</div></div>' + devNotify + '</td>';
5394 + r += '<div class="style10 d-flex align-items-center" style=cursor:pointer;font-size:14px;max-height:18px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap title="' + title + '" onmouseup=gotoDevice(\'' + node._id + '\',null,null,event)>' + name + '</div></div>' + devNotify + '</td>';
5395
5396 // Use defaults if needed
5397 if (deviceViewSettings == null) { deviceViewSettings = {}; }