From 10c52d78d9ec66ff5107ae295d3a541313b59492 Mon Sep 17 00:00:00 2001 From: Valerian Saliou Date: Wed, 2 Jun 2021 15:05:10 +0200 Subject: [PATCH] Fix EOL box width --- src/config/environment.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config/environment.rs b/src/config/environment.rs index 71de9f0..3e883dc 100644 --- a/src/config/environment.rs +++ b/src/config/environment.rs @@ -45,7 +45,7 @@ pub const END_OF_LINE_STEPS_INDEX_FONT_SIZE: u32 = 14; pub const END_OF_LINE_CONTENT_WIDTH: f64 = DISPLAY_WINDOW_SIZE_WIDTH as f64; pub const END_OF_LINE_CONTENT_HEIGHT: f64 = WINDOW_ICON_HEIGHT as f64 - END_OF_LINE_TITLE_HEIGHT - END_OF_LINE_STEPS_WRAPPER_HEIGHT; -pub const END_OF_LINE_CONTENT_BOX_WIDTH: f64 = END_OF_LINE_STEPS_ITEMS_WIDTH; +pub const END_OF_LINE_CONTENT_BOX_WIDTH: f64 = 680.0; pub const END_OF_LINE_CONTENT_BOX_HEIGHT: f64 = 160.0; pub const END_OF_LINE_CONTENT_BOX_OFFSET_TOP: f64 = 36.0; pub const END_OF_LINE_CONTENT_ICON_WIDTH: u32 = 100; @@ -53,7 +53,7 @@ pub const END_OF_LINE_CONTENT_ICON_HEIGHT: u32 = END_OF_LINE_CONTENT_ICON_WIDTH; pub const END_OF_LINE_CONTENT_ICON_SIZE: f64 = END_OF_LINE_CONTENT_ICON_WIDTH as f64; pub const END_OF_LINE_CONTENT_ICON_SPACING_SIDES: f64 = 40.0; pub const END_OF_LINE_CONTENT_TEXT_WRAPPER_MARGIN_RIGHT: f64 = 40.0; -pub const END_OF_LINE_CONTENT_TEXT_WRAPPER_WIDTH: f64 = END_OF_LINE_STEPS_ITEMS_WIDTH +pub const END_OF_LINE_CONTENT_TEXT_WRAPPER_WIDTH: f64 = END_OF_LINE_CONTENT_BOX_WIDTH - (END_OF_LINE_CONTENT_ICON_SIZE + (2.0 * END_OF_LINE_CONTENT_ICON_SPACING_SIDES) + END_OF_LINE_CONTENT_TEXT_WRAPPER_MARGIN_RIGHT); @@ -65,7 +65,7 @@ pub const END_OF_LINE_CONTENT_TEXT_WRAPPER_HEIGHT: f64 = END_OF_LINE_CONTENT_TEX pub const END_OF_LINE_CONTENT_TEXT_TITLE_FONT_SIZE: u32 = 19; pub const END_OF_LINE_CONTENT_TEXT_MESSAGE_FONT_SIZE: u32 = 14; pub const END_OF_LINE_CONTENT_TEXT_MESSAGE_MARGIN_TOP: f64 = 19.0; -pub const END_OF_LINE_CONTENT_DETAILS_BOX_WIDTH: f64 = END_OF_LINE_STEPS_ITEMS_WIDTH; +pub const END_OF_LINE_CONTENT_DETAILS_BOX_WIDTH: f64 = END_OF_LINE_CONTENT_BOX_WIDTH; pub const END_OF_LINE_CONTENT_DETAILS_BOX_HEIGHT: f64 = 34.0; pub const END_OF_LINE_CONTENT_DETAILS_BOX_MARGIN_BOTTOM: f64 = 16.0; pub const END_OF_LINE_CONTENT_DETAILS_TEXT_FONT_SIZE: u32 = 13;