Skip to content

Commit 4995a94

Browse files
committed
hotfix: header 높이가 84 가 아니게 되어버린 이슈 대응
1 parent 4e69d32 commit 4995a94

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

apps/home/app/layout.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ export default function RootLayout({ children }: PropsWithChildren): JSX.Element
3333
return (
3434
<html lang="ko">
3535
<body className={inter.className}>
36-
<Suspense>{children}</Suspense>
36+
<main className="pt-iframe-padding">
37+
<Suspense>{children}</Suspense>
38+
</main>
3739
</body>
3840
</html>
3941
)

apps/wiki/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default function RootLayout({ children }: PropsWithChildren): JSX.Element
4545
return (
4646
<html lang="ko">
4747
<body className={inter.className}>
48-
<main className="flex gap-6 mobile:flex-col px-4 max-w-[1200px] mx-auto">
48+
<main className="flex gap-6 mobile:flex-col px-4 max-w-[1200px] mx-auto pt-iframe-padding">
4949
<Suspense>
5050
{children}
5151
<SideNav items={NAV_ITEMS} />

packages/ui/tailwind.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ const config = {
2626
extend: {
2727
height: {
2828
'iframe-height': 'calc(100vh - 84px)',
29-
'iframe-height-mobile': 'calc(100vh - 108px)',
29+
},
30+
padding: {
31+
'iframe-padding': '1.5rem',
3032
},
3133
colors: {
3234
border: 'hsl(var(--border))',

web/app/_shared/components/GlobalNavigationBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type { MouseEventHandler, PropsWithChildren } from 'react'
1010

1111
export const GlobalNavigationBar = () => {
1212
return (
13-
<nav className="flex gap-4 mb-[24px]">
13+
<nav className="flex gap-4">
1414
<LinkButton
1515
href="/home"
1616
onClick={() =>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const IFRAME_CLASS_NAME = 'w-full h-iframe-height pb-1 mobile:h-iframe-height-mobile'
1+
export const IFRAME_CLASS_NAME = 'w-full h-iframe-height pb-1'

0 commit comments

Comments
 (0)