From efcfec5129aafee994f32395679bdb1273b08453 Mon Sep 17 00:00:00 2001 From: arctic-hen7 Date: Wed, 8 Feb 2023 08:10:11 +1100 Subject: [PATCH] fix(error_views): fixed positioning of default error views I foolishly used `position: absolute` instead of `position: fixed` for some reason, which meant they would scroll out of the way --- not ideal... --- packages/perseus/src/error_views.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/perseus/src/error_views.rs b/packages/perseus/src/error_views.rs index f3af8d01ad..3281ff2c78 100644 --- a/packages/perseus/src/error_views.rs +++ b/packages/perseus/src/error_views.rs @@ -211,7 +211,7 @@ margin-bottom: 1rem; view! { cx, div( style = r#" -position: absolute; +position: fixed; bottom: 0; right: 0; background-color: #f87171; @@ -247,6 +247,7 @@ margin-top: 1rem; style = r#" background-color: #f59e0b; padding: 1rem; +margin-top: 1rem; border-radius: 0.5rem; white-space: pre-wrap; word-wrap: break-word; @@ -309,6 +310,7 @@ margin-top: 1rem; style = r#" background-color: #f59e0b; padding: 1rem; +margin-top: 1rem; border-radius: 0.5rem; white-space: pre-wrap; word-break: break-word; @@ -342,7 +344,7 @@ width: 100%; ErrorPosition::Popup => view! { cx, div( style = r#" -position: absolute; +position: fixed; bottom: 0; right: 0; display: flex;