Skip to content

Commit

Permalink
hotfix: header 높이가 84 가 아니게 되어버린 이슈 대응
Browse files Browse the repository at this point in the history
  • Loading branch information
minsoo-web committed Sep 15, 2024
1 parent 4e69d32 commit 4995a94
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
4 changes: 3 additions & 1 deletion apps/home/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ export default function RootLayout({ children }: PropsWithChildren): JSX.Element
return (
<html lang="ko">
<body className={inter.className}>
<Suspense>{children}</Suspense>
<main className="pt-iframe-padding">
<Suspense>{children}</Suspense>
</main>
</body>
</html>
)
Expand Down
2 changes: 1 addition & 1 deletion apps/wiki/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function RootLayout({ children }: PropsWithChildren): JSX.Element
return (
<html lang="ko">
<body className={inter.className}>
<main className="flex gap-6 mobile:flex-col px-4 max-w-[1200px] mx-auto">
<main className="flex gap-6 mobile:flex-col px-4 max-w-[1200px] mx-auto pt-iframe-padding">
<Suspense>
{children}
<SideNav items={NAV_ITEMS} />
Expand Down
4 changes: 3 additions & 1 deletion packages/ui/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ const config = {
extend: {
height: {
'iframe-height': 'calc(100vh - 84px)',
'iframe-height-mobile': 'calc(100vh - 108px)',
},
padding: {
'iframe-padding': '1.5rem',
},
colors: {
border: 'hsl(var(--border))',
Expand Down
2 changes: 1 addition & 1 deletion web/app/_shared/components/GlobalNavigationBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type { MouseEventHandler, PropsWithChildren } from 'react'

export const GlobalNavigationBar = () => {
return (
<nav className="flex gap-4 mb-[24px]">
<nav className="flex gap-4">
<LinkButton
href="/home"
onClick={() =>
Expand Down
2 changes: 1 addition & 1 deletion web/app/_shared/constants/styles.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const IFRAME_CLASS_NAME = 'w-full h-iframe-height pb-1 mobile:h-iframe-height-mobile'
export const IFRAME_CLASS_NAME = 'w-full h-iframe-height pb-1'

0 comments on commit 4995a94

Please sign in to comment.