Increase font size for mobile neighbor nodes (#1779)

This commit is contained in:
Tim Wilkinson 2024-12-24 22:30:58 -08:00 committed by GitHub
parent ee3380b4f5
commit d658d78421
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 18 additions and 6 deletions

View File

@ -141,12 +141,12 @@
<div class="section-title">Local Nodes</div>
<div class="section" style="line-height:18px;margin-top:-16px">
<div class="cols">
<div class="heading" style="flex:0.75"></div>
<div class="heading"></div>
<div class="heading ts cols stats">
{% if (!request.mobile) { %}
<div>lq</div><div>nlq</div><div>snr</div><div>n snr</div><div>errors</div><div>mbps</div><div>{{units.distanceUnit()}}</div>
{% } else { %}
<div>lq</div><div>nlq</div><div>snr</div><div>n snr</div><div>errors</div>
<div>lq</div><div>nlq</div>
{% } %}
</div>
</div>
@ -178,7 +178,7 @@
print(`<div>${lq}</div><div>${nlq}</div><div></div><div></div><div>${type(tracker && tracker.quality) ? (100 - tracker.quality) + "%" : "-"}</div><div></div><div></div>`);
}
else {
print(`<div>${lq}</div><div>${nlq}</div><div></div><div></div><div>${type(tracker && tracker.quality) ? (100 - tracker.quality) + "%" : "-"}</div>`);
print(`<div>${lq}</div><div>${nlq}</div>`);
}
print("</div></div>");
}
@ -242,7 +242,10 @@
print(`<div class='h'><a onclick="event.stopPropagation()" href='http://${ip}'>${ip}<div class="icon ${icon}"></div></a></div>`);
}
print("<div class='ts cols stats'>");
if (tracker) {
if (request.mobile) {
print(`<div>${lq}</div><div>${nlq}</div>`);
}
else if (tracker) {
let d = "-";
if ("distance" in tracker) {
d = units.meters2distance(tracker.distance);

View File

@ -81,9 +81,14 @@ body.hide-bars #m-nav
min-width: 0px;
flex: 1;
}
#m-main #local-and-neighbor-devices .h
#m-main #local-and-neighbor-devices .section
{
flex: 1;
font-size: 18px;
}
#m-main #local-and-neighbor-devices .section .h,
#m-main #local-and-neighbor-devices .section .heading:not(.stats)
{
flex: 3;
}
#m-main #dhcp .t
{

View File

@ -428,6 +428,10 @@ body.authenticated .ctrl:hover
padding: 2.5px 5px;
margin: -5px -5px;
}
#local-and-neighbor-devices .section .heading:not(.stats)
{
flex: 0.75;
}
#local-and-neighbor-devices .status .h
{
flex: 0.75;