Sort of bug fix for hiding the header and footer at the right time.
This commit is contained in:
@@ -124,6 +124,7 @@ function scroll_container() {
|
|||||||
{#if !$ae_sess?.disable_sys_nav}
|
{#if !$ae_sess?.disable_sys_nav}
|
||||||
<nav
|
<nav
|
||||||
bind:clientHeight={nav_y_height}
|
bind:clientHeight={nav_y_height}
|
||||||
|
class:hidden={yTop > 600}
|
||||||
class:opacity-0={yTop > 250}
|
class:opacity-0={yTop > 250}
|
||||||
class="
|
class="
|
||||||
submenu
|
submenu
|
||||||
@@ -273,6 +274,7 @@ function scroll_container() {
|
|||||||
|
|
||||||
{#if !$ae_sess?.disable_sys_footer}
|
{#if !$ae_sess?.disable_sys_footer}
|
||||||
<footer
|
<footer
|
||||||
|
class:hidden={yTop > 300}
|
||||||
class:opacity-80={yTop < 250}
|
class:opacity-80={yTop < 250}
|
||||||
class:opacity-0={yTop > 250}
|
class:opacity-0={yTop > 250}
|
||||||
class="
|
class="
|
||||||
|
|||||||
@@ -118,6 +118,7 @@ function scroll_container() {
|
|||||||
<!-- class:hidden={yTop > 200} -->
|
<!-- class:hidden={yTop > 200} -->
|
||||||
<nav
|
<nav
|
||||||
bind:clientHeight={nav_y_height}
|
bind:clientHeight={nav_y_height}
|
||||||
|
class:hidden={yTop > 600}
|
||||||
class:opacity-0={yTop > 250}
|
class:opacity-0={yTop > 250}
|
||||||
class="
|
class="
|
||||||
submenu
|
submenu
|
||||||
@@ -128,8 +129,8 @@ function scroll_container() {
|
|||||||
min-h-12
|
min-h-12
|
||||||
p-1 px-2 pb-2 m-auto
|
p-1 px-2 pb-2 m-auto
|
||||||
|
|
||||||
flex flex-col sm:flex-row sm:flex-wrap
|
flex flex-row flex-wrap
|
||||||
items-center justify-between
|
items-center justify-around sm:justify-between
|
||||||
gap-1
|
gap-1
|
||||||
|
|
||||||
border-b-2 rounded-b-lg
|
border-b-2 rounded-b-lg
|
||||||
@@ -382,6 +383,7 @@ function scroll_container() {
|
|||||||
|
|
||||||
|
|
||||||
<footer
|
<footer
|
||||||
|
class:hidden={yTop > 300}
|
||||||
class:opacity-80={yTop < 250}
|
class:opacity-80={yTop < 250}
|
||||||
class:opacity-0={yTop > 250}
|
class:opacity-0={yTop > 250}
|
||||||
class="
|
class="
|
||||||
|
|||||||
Reference in New Issue
Block a user