Skip to content

Commit ff90e84

Browse files
committed
fix padding
1 parent 792c208 commit ff90e84

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

quartz/quartz/components/ExplorerNode.tsx

+4-6
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,12 @@ export function ExplorerNode({ node, opts, fullPath, fileData }: ExplorerNodePro
184184
border: "none",
185185
borderTop: "0.1px solid white",
186186
opacity: 0.2,
187-
marginBottom: "20px",
187+
marginTop: "10px",
188+
marginBottom: "30px",
188189
}}
189190
/>
190191
)}
191-
<li key={node.file.slug}>
192+
<li style={{ marginBottom: "10px" }} key={node.file.slug}>
192193
<a href={resolveRelative(fileData.slug!, node.file.slug!)} data-for={node.file.slug}>
193194
{node.displayName}
194195
</a>
@@ -213,10 +214,7 @@ export function ExplorerNode({ node, opts, fullPath, fileData }: ExplorerNodePro
213214
{node.name !== "" && (
214215
// Node with entire folder
215216
// Render svg button + folder name, then children
216-
<div
217-
style={node.displayName === "Explore" ? { marginBottom: "10px" } : {}}
218-
class="folder-container"
219-
>
217+
<div style={{ marginBottom: "10px" }} class="folder-container">
220218
{/* render <a> tag if folderBehavior is "link", otherwise render <button> with collapse click event */}
221219
<div key={node.name} data-folderpath={folderPath}>
222220
{folderBehavior === "link" ? (

quartz/quartz/components/styles/explorer.scss

-3
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@ button#explorer {
5858
margin: 0.08rem 0;
5959
padding: 0;
6060
padding-left: 0px;
61-
display: flex;
62-
flex-direction: column;
63-
gap: 10px;
6461
font-size: 17px;
6562
line-height: 22px;
6663
letter-spacing: 0.4px;

0 commit comments

Comments
 (0)