Skip to content

Commit

Permalink
Only take doc_drawer into account when is_small is true
Browse files Browse the repository at this point in the history
  • Loading branch information
lpotthast committed Feb 19, 2024
1 parent 584d93f commit 5118292
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/book-ssr/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ pub fn Layout(#[prop(optional)] children: Option<Children>) -> impl IntoView {

<Box
id="content"
attr:aria-hidden=move || { ((is_doc.get() && !doc_drawer_closed.get()) || !main_drawer_closed.get()).to_string() }
attr:aria-hidden=move || { ((is_doc.get() && is_small.get() && !doc_drawer_closed.get()) || !main_drawer_closed.get()).to_string() }
style=format!("height: calc(var(--leptonic-vh, 100vh) - {APP_BAR_HEIGHT}); max-height: calc(var(--leptonic-vh, 100vh) - {APP_BAR_HEIGHT});")
>
{
Expand Down

0 comments on commit 5118292

Please sign in to comment.