fix sticky gap on some android devices
This commit is contained in:
parent
d5a018e48d
commit
79b894514b
@ -100,3 +100,12 @@
|
||||
.dropdown>button {
|
||||
padding-left: 0 !important;
|
||||
}
|
||||
|
||||
.sticky {
|
||||
position: sticky;
|
||||
border-bottom: 1px solid var(--theme-toolbarActive);
|
||||
top: -1px;
|
||||
padding-top: 1px;
|
||||
background-color: var(--bs-body-bg);
|
||||
z-index: 1000;
|
||||
}
|
@ -24,7 +24,7 @@ export default function StickyBar ({ prefix, sub, path, topNavKey, dropNavKey })
|
||||
return (
|
||||
<>
|
||||
<div ref={ref} style={{ position: 'relative', top: '50px' }} />
|
||||
<div className={styles.hide} style={{ position: 'sticky', borderBottom: '1px solid var(--theme-toolbarActive)', top: '0', backgroundColor: 'var(--bs-body-bg)', zIndex: 1000 }} ref={sticky}>
|
||||
<div className={classNames(styles.hide, styles.sticky)} ref={sticky}>
|
||||
<Container className='px-0 d-none d-md-block'>
|
||||
<Navbar className='py-0'>
|
||||
<Nav
|
||||
|
Loading…
x
Reference in New Issue
Block a user