Move dashboard tile row left spacing to margin-left

This commit is contained in:
Ethan Girouard 2024-07-30 21:35:44 -04:00
parent fa811350ae
commit 9d6013b8a4
Signed by: eta357
GPG Key ID: 7BCDC36DFD11C146
2 changed files with 4 additions and 2 deletions

View File

@ -36,7 +36,7 @@ impl IntoView for DashboardRow {
if let Some(first_tile) = scroll_element.first_element_child() { if let Some(first_tile) = scroll_element.first_element_child() {
let tile_width = first_tile.client_width() as f64; 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); scroll_element.scroll_to_with_x_and_y(scroll_pos, 0.0);
} else { } else {
warn!("Could not get first tile to scroll left"); 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() { if let Some(first_tile) = scroll_element.first_element_child() {
let tile_width = first_tile.client_width() as f64; 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); scroll_element.scroll_to_with_x_and_y(scroll_pos, 0.0);
} else { } else {
warn!("Could not get first tile to scroll right"); warn!("Could not get first tile to scroll right");

View File

@ -32,6 +32,8 @@
display: flex; display: flex;
overflow-x: hidden; overflow-x: hidden;
scroll-behavior: smooth; scroll-behavior: smooth;
margin-left: 40px;
padding-inline-start: 0;
li { li {
list-style-type: none; list-style-type: none;