mirror of
https://github.com/DeveloLongScript/MHSF.git
synced 2026-05-07 22:14:59 -05:00
fix: use custom top property for environments in production or not
This commit is contained in:
parent
955ba3774c
commit
d7714f4cdb
@ -30,6 +30,7 @@
|
|||||||
|
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
|
import { banner } from "@/config/banner";
|
||||||
import { useEffect, useState, ReactNode } from "react";
|
import { useEffect, useState, ReactNode } from "react";
|
||||||
|
|
||||||
export default function StickyTopbar({
|
export default function StickyTopbar({
|
||||||
@ -60,7 +61,7 @@ export default function StickyTopbar({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={`transition-all duration-300 ${isSticky ? "fixed top-[70px] left-0 w-full backdrop-blur shadow-lg " + className : "block w-full bg-transparent"}`}
|
className={`transition-all duration-300 ${isSticky ? "fixed left-0 w-full backdrop-blur shadow-lg " + (banner.isBanner == true ? "top-[70px] " : "top-[38px] ") + className : "block w-full bg-transparent"}`}
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user