Skip to content

Commit

Permalink
fix(error_views): fixed positioning of default error views
Browse files Browse the repository at this point in the history
I foolishly used `position: absolute` instead of `position: fixed` for
some reason, which meant they would scroll out of the way --- not ideal...
  • Loading branch information
arctic-hen7 committed Feb 7, 2023
1 parent 89e864a commit efcfec5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/perseus/src/error_views.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ margin-bottom: 1rem;
view! { cx,
div(
style = r#"
position: absolute;
position: fixed;
bottom: 0;
right: 0;
background-color: #f87171;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -342,7 +344,7 @@ width: 100%;
ErrorPosition::Popup => view! { cx,
div(
style = r#"
position: absolute;
position: fixed;
bottom: 0;
right: 0;
display: flex;
Expand Down

0 comments on commit efcfec5

Please sign in to comment.