mirror of
https://github.com/DeveloLongScript/MHSF.git
synced 2026-05-07 20:35:06 -05:00
fix: use custom top property for environments in production or not
fix: use custom `top` property for environments in production or not
This commit is contained in:
commit
db587401bf
@ -30,6 +30,7 @@
|
||||
|
||||
"use client";
|
||||
|
||||
import { banner } from "@/config/banner";
|
||||
import { useEffect, useState, ReactNode } from "react";
|
||||
|
||||
export default function StickyTopbar({
|
||||
@ -60,7 +61,7 @@ export default function StickyTopbar({
|
||||
|
||||
return (
|
||||
<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}
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user