mirror of
https://git.alemi.dev/dashboard.git
synced 2024-11-14 11:59:18 +01:00
feat: remove left padding when limiting points
This commit is contained in:
parent
931ceaeb03
commit
747d4cff51
1 changed files with 5 additions and 0 deletions
|
@ -299,6 +299,11 @@ impl eframe::App for App {
|
||||||
if panel.view_scroll {
|
if panel.view_scroll {
|
||||||
p = p
|
p = p
|
||||||
.include_x(Utc::now().timestamp() as f64);
|
.include_x(Utc::now().timestamp() as f64);
|
||||||
|
if panel.limit {
|
||||||
|
p = p
|
||||||
|
.set_margin_fraction(eframe::emath::Vec2{x:0.0, y:0.1})
|
||||||
|
.include_x((Utc::now().timestamp() + ( panel.view_size as i64 * 3)) as f64);
|
||||||
|
}
|
||||||
if panel.limit {
|
if panel.limit {
|
||||||
p = p.include_x(
|
p = p.include_x(
|
||||||
(Utc::now().timestamp() - (panel.view_size as i64 * 60))
|
(Utc::now().timestamp() - (panel.view_size as i64 * 60))
|
||||||
|
|
Loading…
Reference in a new issue