Skip to content

Commit

Permalink
fix: bottom nav (#1167)
Browse files Browse the repository at this point in the history
  • Loading branch information
sasicodes authored Dec 4, 2023
1 parent 4bfbc4e commit 9abd85d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apps/web/src/components/Bangers/RenderBanger.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import RenderLink from './RenderLink'

const RenderBanger = ({ post }: { post: PrimaryPublication }) => {
return (
<div className="ultrawide:space-y-8 tape-border hover:bg-gallery/50 hover:dark:bg-smoke space-y-6 !border-x-0 !border-t-0 p-5">
<div className="ultrawide:space-y-8 tape-border hover:bg-gallery/50 hover:dark:bg-smoke space-y-6 !border-x-0 !border-t-0 p-2 md:p-5">
<div className="space-y-4">
<div className="space-y-3">
<div className="flex items-center justify-between">
Expand Down
10 changes: 8 additions & 2 deletions apps/web/src/components/Common/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,16 @@ import Navbar from './Navbar'
interface Props {
children: ReactNode
skipNav?: boolean
skipBottomNav?: boolean
skipPadding?: boolean
}

const Layout: FC<Props> = ({ children, skipNav, skipPadding }) => {
const Layout: FC<Props> = ({
children,
skipNav,
skipBottomNav,
skipPadding
}) => {
const { setLensHubOnchainSigNonce } = useNonceStore()
const activeProfile = useProfileStore((state) => state.activeProfile)
const setActiveProfile = useProfileStore((state) => state.setActiveProfile)
Expand Down Expand Up @@ -131,7 +137,7 @@ const Layout: FC<Props> = ({ children, skipNav, skipPadding }) => {
>
{children}
</div>
<MobileBottomNav />
{!skipBottomNav && <MobileBottomNav />}
</>
)
}
Expand Down
6 changes: 4 additions & 2 deletions apps/web/src/components/Common/Providers/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ const Web3Provider = dynamic(() => import('./Web3Provider'))
const GlobalDialogs = dynamic(() => import('../GlobalDialogs'))
const Layout = dynamic(() => import('../Layout'))

const NO_NAV_PATHS = ['/login']
const NO_TOP_NAV_PATHS = ['/login']
const NO_BOTTOM_NAV_PATHS = ['/bangers']
const NO_PADDING_PATHS = [
'/u/[[...handle]]',
'/bangers',
Expand Down Expand Up @@ -47,7 +48,8 @@ const Providers = ({ children }: { children: ReactNode }) => {
<GlobalDialogs />
<LivepeerConfig client={livepeerClient} theme={videoPlayerTheme}>
<Layout
skipNav={NO_NAV_PATHS.includes(pathname)}
skipNav={NO_TOP_NAV_PATHS.includes(pathname)}
skipBottomNav={NO_BOTTOM_NAV_PATHS.includes(pathname)}
skipPadding={NO_PADDING_PATHS.includes(pathname)}
>
{children}
Expand Down

2 comments on commit 9abd85d

@vercel
Copy link

@vercel vercel bot commented on 9abd85d Dec 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

embed – ./apps/embed

embed-tapexyz.vercel.app
embed-git-main-tapexyz.vercel.app
embed.tape.xyz

@vercel
Copy link

@vercel vercel bot commented on 9abd85d Dec 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

web – ./apps/web

web-tapexyz.vercel.app
web-git-main-tapexyz.vercel.app
tape.xyz
www.tape.xyz

Please sign in to comment.