Skip to content

Commit 00a2741

Browse files
committed
Fix sidebar offset
1 parent b9a982d commit 00a2741

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lib/components/billing/gradientBanner.svelte

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
const alertHeight = container?.getBoundingClientRect()?.height || 0;
2323
const { header, sidebar, content } = queryLayoutElements();
2424
const headerHeight = header?.getBoundingClientRect().height || 0;
25-
const offset = alertHeight + (!isTabletViewport && header ? headerHeight : 0);
26-
25+
const offset = alertHeight + (!$isTabletViewport && header ? headerHeight : 0);
2726
if (header) header.style.top = `${alertHeight}px`;
2827
if (sidebar) {
2928
sidebar.style.top = `${offset}px`;

0 commit comments

Comments
 (0)