Skip to content

Commit 7d9279a

Browse files
authored
Move width style to a proper div (#2003)
1 parent 004b32c commit 7d9279a

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.changeset/real-pets-grow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@theguild/components": patch
3+
---
4+
5+
Move width style to a proper div

packages/components/src/components/hive-navigation/index.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,7 @@ export function HiveNavigation({
104104
return (
105105
<div
106106
ref={containerRef}
107-
className={cn(
108-
'sticky top-0 z-20 border-b border-beige-400/[var(--border-opacity)] bg-[rgb(var(--nextra-bg))] px-6 py-4 text-green-1000 transition-[border-color] duration-500 md:mb-[7px] md:mt-2 dark:border-neutral-700/[var(--border-opacity)] dark:text-neutral-200',
109-
WIDTH_STYLE,
110-
)}
107+
className="sticky top-0 z-20 border-b border-beige-400/[var(--border-opacity)] bg-[rgb(var(--nextra-bg))] px-6 py-4 text-green-1000 transition-[border-color] duration-500 md:mb-[7px] md:mt-2 dark:border-neutral-700/[var(--border-opacity)] dark:text-neutral-200"
111108
style={{ '--border-opacity': 0 }}
112109
>
113110
<TopOfSiteMarker
@@ -124,7 +121,10 @@ export function HiveNavigation({
124121
</div>
125122

126123
{/* desktop menu */}
127-
<NavigationMenu className={cn('mx-auto hidden md:flex', className)} delayDuration={0}>
124+
<NavigationMenu
125+
className={cn('mx-auto hidden md:flex', WIDTH_STYLE, className)}
126+
delayDuration={0}
127+
>
128128
{logo}
129129
<NavigationMenuList className="ml-4 bg-white dark:bg-transparent [@media(min-width:1180px)]:ml-16">
130130
<NavigationMenuItem>

0 commit comments

Comments
 (0)