diff --git a/src/components/Layout.jsx b/src/components/Layout.jsx
index 90d3b6f5..808953d0 100644
--- a/src/components/Layout.jsx
+++ b/src/components/Layout.jsx
@@ -178,8 +178,8 @@ export function Layout({ children, title, tableOfContents }) {
className="relative mx-auto flex max-w-8xl sm:px-2 lg:px-8 xl:px-12 lg:ml-72 xl:ml-80"
style={{ paddingTop: bannerHeight }}
>
-
@@ -192,7 +192,7 @@ export function Layout({ children, title, tableOfContents }) {
{router.route.startsWith("/ipa") ? : }
-
+
{children}
diff --git a/src/components/NavigationAPI.jsx b/src/components/NavigationAPI.jsx
index 269b8126..4f46572d 100644
--- a/src/components/NavigationAPI.jsx
+++ b/src/components/NavigationAPI.jsx
@@ -110,7 +110,7 @@ export function NavLink({ href, tag, active, isAnchorLink = false, children, lin
{links &&
{links.map((link,index) => (
-
+
{link.title}
@@ -146,7 +146,7 @@ export function VisibleSectionHighlight() {
return activeIndex >= 0 && (
= 0 && (
@@ -200,7 +200,7 @@ function NavigationGroup({ group, className, tableOfContents }) {
)}
@@ -210,7 +210,7 @@ function NavigationGroup({ group, className, tableOfContents }) {
{group.links.map((link) => (
-
+
{link.title}
diff --git a/src/components/NavigationDocs.jsx b/src/components/NavigationDocs.jsx
index 1eccfab3..190ed8f0 100644
--- a/src/components/NavigationDocs.jsx
+++ b/src/components/NavigationDocs.jsx
@@ -371,7 +371,7 @@ export const docsNavigation = [
return (
-
@@ -427,7 +427,7 @@ export const docsNavigation = [
className="border-l border-transparent">
{group.links.map((link) => {
return link.href ?
-
+
{link.title}
diff --git a/src/components/announcement-banner/AnnouncementBannerProvider.jsx b/src/components/announcement-banner/AnnouncementBannerProvider.jsx
index 4a6bf568..6b426ef7 100644
--- a/src/components/announcement-banner/AnnouncementBannerProvider.jsx
+++ b/src/components/announcement-banner/AnnouncementBannerProvider.jsx
@@ -35,7 +35,6 @@ export function AnnouncementBannerProvider({ children }) {
undefined
)
let announcementId = announcement.text
- let [isHiddenByScroll, setIsHiddenByScroll] = useState(false)
let [bannerHeight, setBannerHeight] = useState(0)
let close = () => {
@@ -48,7 +47,7 @@ export function AnnouncementBannerProvider({ children }) {
return closedAnnouncement !== announcementId
}, [announcementId, closedAnnouncement, mounted])
- let isVisible = isActive && !isHiddenByScroll
+ let isVisible = isActive // Always visible when active, regardless of scroll
let reportHeight = useCallback((height) => {
setBannerHeight(height)
@@ -59,19 +58,20 @@ export function AnnouncementBannerProvider({ children }) {
return () => setMounted(false)
}, [])
- useEffect(() => {
- if (typeof window === 'undefined') {
- return
- }
+ // Removed scroll-based hiding to make banner always sticky
+ // useEffect(() => {
+ // if (typeof window === 'undefined') {
+ // return
+ // }
- function handleScroll() {
- setIsHiddenByScroll(window.scrollY > 30)
- }
+ // function handleScroll() {
+ // setIsHiddenByScroll(window.scrollY > 30)
+ // }
- handleScroll()
- window.addEventListener('scroll', handleScroll, { passive: true })
- return () => window.removeEventListener('scroll', handleScroll)
- }, [])
+ // handleScroll()
+ // window.addEventListener('scroll', handleScroll, { passive: true })
+ // return () => window.removeEventListener('scroll', handleScroll)
+ // }, [])
useEffect(() => {
if (!isVisible && bannerHeight !== 0) {