From a12d76afdb51e0de3adf5fdaef63e5f20077ff97 Mon Sep 17 00:00:00 2001
From: Callum Barker <64287849+cbarkr@users.noreply.github.com>
Date: Thu, 13 Jun 2024 19:47:22 +0000
Subject: [PATCH] fix: fix explorer view gradient positioning on mobile (fixes #906) (#1206)
---
quartz/components/renderPage.tsx | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/quartz/components/renderPage.tsx b/quartz/components/renderPage.tsx
index 0c18544..251a53f 100644
--- a/quartz/components/renderPage.tsx
+++ b/quartz/components/renderPage.tsx
@@ -118,11 +118,12 @@
// skip until we find the blockref that matches
if (el.properties?.id === blockRef) {
startIdx = i
- startDepth = Number(el.tagName.substring(1))
+ startDepth = depth
}
} else if (depth <= startDepth) {
// looking for new header that is same level or higher
endIdx = i
+ break
}
}
--
Gitblit v1.10.0