From 9d6013b8a4d8a86d02782d49108fa6885afd0446 Mon Sep 17 00:00:00 2001 From: Ethan Girouard Date: Tue, 30 Jul 2024 21:35:44 -0400 Subject: [PATCH] Move dashboard tile row left spacing to margin-left --- src/components/dashboard_row.rs | 4 ++-- style/dashboard_row.scss | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/dashboard_row.rs b/src/components/dashboard_row.rs index 4134161..10f1ee9 100644 --- a/src/components/dashboard_row.rs +++ b/src/components/dashboard_row.rs @@ -36,7 +36,7 @@ impl IntoView for DashboardRow { if let Some(first_tile) = scroll_element.first_element_child() { let tile_width = first_tile.client_width() as f64; - let scroll_pos = desired_pos + (tile_width - (desired_pos % tile_width)) + 15.0; + let scroll_pos = desired_pos + (tile_width - (desired_pos % tile_width)); scroll_element.scroll_to_with_x_and_y(scroll_pos, 0.0); } else { warn!("Could not get first tile to scroll left"); @@ -56,7 +56,7 @@ impl IntoView for DashboardRow { if let Some(first_tile) = scroll_element.first_element_child() { let tile_width = first_tile.client_width() as f64; - let scroll_pos = desired_pos - (desired_pos % tile_width) + 15.0; + let scroll_pos = desired_pos - (desired_pos % tile_width); scroll_element.scroll_to_with_x_and_y(scroll_pos, 0.0); } else { warn!("Could not get first tile to scroll right"); diff --git a/style/dashboard_row.scss b/style/dashboard_row.scss index 1dea8d9..8bbb2c9 100644 --- a/style/dashboard_row.scss +++ b/style/dashboard_row.scss @@ -32,6 +32,8 @@ display: flex; overflow-x: hidden; scroll-behavior: smooth; + margin-left: 40px; + padding-inline-start: 0; li { list-style-type: none;