From b33f13ccaf4ec14a94ee0ee467dda04cf4981d00 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Mon, 01 Jan 2024 22:20:34 +0000
Subject: [PATCH] fix: dont show last page if folder
---
quartz/components/ExplorerNode.tsx | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/quartz/components/ExplorerNode.tsx b/quartz/components/ExplorerNode.tsx
index 118f25b..60966b3 100644
--- a/quartz/components/ExplorerNode.tsx
+++ b/quartz/components/ExplorerNode.tsx
@@ -174,7 +174,7 @@
}
return (
- <li>
+ <>
{node.file ? (
// Single file node
<li key={node.file.slug}>
@@ -183,7 +183,7 @@
</a>
</li>
) : (
- <div>
+ <li>
{node.name !== "" && (
// Node with entire folder
// Render svg button + folder name, then children
@@ -214,7 +214,7 @@
</a>
) : (
<button class="folder-button">
- <p class="folder-title">{node.displayName}</p>
+ <span class="folder-title">{node.displayName}</span>
</button>
)}
</div>
@@ -241,8 +241,8 @@
))}
</ul>
</div>
- </div>
+ </li>
)}
- </li>
+ </>
)
}
--
Gitblit v1.10.0