mirror of
https://github.com/sergeyyarkov/devthread.ru.git
synced 2026-10-11 10:19:13 +03:00
sticky fixed
This commit is contained in:
parent
f6ea35edbb
commit
12d9490e46
@ -4,8 +4,8 @@ import { useLocation } from '@reach/router'
|
||||
const Subscription = () => {
|
||||
const { pathname } = useLocation()
|
||||
return (
|
||||
<div style={pathname !== '/about' ? { height: '100%' } : null}>
|
||||
<div style={pathname !== '/about' ? { position: 'sticky', top: 75 } : null} className="offers-subscription offer-box">
|
||||
<div style={pathname !== '/about' && pathname !== '/about/' ? { height: '100%' } : null}>
|
||||
<div style={pathname !== '/about' && pathname !== '/about/' ? { position: 'sticky', top: 75 } : null} className="offers-subscription offer-box">
|
||||
<div className="offers-subscription__heading offer-heading">
|
||||
Читайте нас в Telegram
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user