Skip to content

Commit c5dca6f

Browse files
committed
granite banner offset
1 parent a27ec82 commit c5dca6f

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

app/global.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,16 @@ body:has([data-granite-banner]) .integrations-page section[id] {
149149
scroll-margin-top: calc(var(--fd-banner-height, 3rem) + 4rem);
150150
}
151151

152+
/* Integration detail page: Add padding-top when banner exists */
153+
body:has([data-granite-banner]) .integration-detail-page {
154+
padding-top: calc(var(--fd-banner-height, 3rem) + 1rem) !important;
155+
}
156+
157+
/* Integration detail page: Default padding (no banner) */
158+
.integration-detail-page {
159+
padding-top: 1rem;
160+
}
161+
152162
/* Remove ALL left whitespace from navbar to fill screen edge */
153163
body > div > nav,
154164
body > div > header,

app/integrations/[...slug]/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default async function Page(props: {
2525
const path = `content/integrations${page.url.replace('/integrations/', '/')}.mdx`;
2626

2727
return (
28-
<>
28+
<div className="integration-detail-page">
2929
<div
3030
className="container rounded-xl border mt-5 py-12 md:px-8"
3131
style={{
@@ -141,7 +141,7 @@ export default async function Page(props: {
141141
</div>
142142
</div>
143143
</article>
144-
</>
144+
</div>
145145
);
146146
}
147147

0 commit comments

Comments
 (0)