Skip to content

Commit bdd6b84

Browse files
docs: Add configurable padding to docs header logo (supabase#39615)
* Add configurable padding to docs header logo * ci: Autofix updates from GitHub workflow * tweak --------- Co-authored-by: alaister <[email protected]> Co-authored-by: Alaister Young <[email protected]>
1 parent d57279d commit bdd6b84

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

apps/docs/components/Navigation/NavigationMenu/TopNavBar.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { memo, useState } from 'react'
77
// End of third-party imports
88

99
import { useIsLoggedIn, useIsUserLoading, useUser } from 'common'
10+
import { isFeatureEnabled } from 'common/enabled-features'
1011
import { Button, buttonVariants, cn } from 'ui'
1112
import { AuthenticatedDropdownMenu, CommandMenuTrigger } from 'ui-patterns'
1213
import { getCustomContent } from '../../../lib/custom-content/getCustomContent'
@@ -16,6 +17,8 @@ import useDropdownMenu from './useDropdownMenu'
1617
const GlobalMobileMenu = dynamic(() => import('./GlobalMobileMenu'))
1718
const TopNavDropdown = dynamic(() => import('./TopNavDropdown'))
1819

20+
const largeLogo = isFeatureEnabled('branding:large_logo')
21+
1922
const TopNavBar: FC = () => {
2023
const isLoggedIn = useIsLoggedIn()
2124
const isUserLoading = useIsUserLoading()
@@ -121,7 +124,7 @@ const HeaderLogo = memo(() => {
121124
)}
122125
>
123126
<Image
124-
className="hidden dark:block !m-0"
127+
className={cn('hidden dark:block !m-0', largeLogo && 'h-[36px]')}
125128
src={navigationLogo?.dark ?? '/docs/supabase-dark.svg'}
126129
priority={true}
127130
loading="eager"
@@ -130,7 +133,7 @@ const HeaderLogo = memo(() => {
130133
alt="Supabase wordmark"
131134
/>
132135
<Image
133-
className="block dark:hidden !m-0"
136+
className={cn('block dark:hidden !m-0', largeLogo && 'h-[36px]')}
134137
src={navigationLogo?.light ?? '/docs/supabase-light.svg'}
135138
priority={true}
136139
loading="eager"

0 commit comments

Comments
 (0)