From c4cf0dcb022ff826433b63b8ff68830bb8503895 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Sun, 18 Jun 2023 17:47:07 +0000
Subject: [PATCH] local and global graph

---
 quartz/components/Header.tsx |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/quartz/components/Header.tsx b/quartz/components/Header.tsx
index 197c4e5..06ae88b 100644
--- a/quartz/components/Header.tsx
+++ b/quartz/components/Header.tsx
@@ -1,9 +1,9 @@
 import { QuartzComponentConstructor, QuartzComponentProps } from "./types"
 
 function Header({ children }: QuartzComponentProps) {
-  return <header>
+  return (children.length > 0) ? <header>
     {children}
-  </header>
+  </header> : null
 }
 
 Header.css = `
@@ -11,12 +11,10 @@
   display: flex;
   flex-direction: row;
   align-items: center;
-  margin: 1em 0 2em 0;
-  & > h1 {
-  }
+  margin: 2em 0;
 }
 
-header > h1 {
+header h1 {
   margin: 0;
   flex: auto;
 }

--
Gitblit v1.10.0