From bb24cd13c7fafbd42d3980c45351a58a76dabb18 Mon Sep 17 00:00:00 2001
From: 1 gal Rosemary <cerasusyedoensis@proton.me>
Date: Sat, 05 Apr 2025 17:39:28 +0000
Subject: [PATCH] fix(css): styles issues with popover, overflow, and scroll overflow (#1907)
---
quartz/components/Header.tsx | 26 +++++++++++++++++++-------
1 files changed, 19 insertions(+), 7 deletions(-)
diff --git a/quartz/components/Header.tsx b/quartz/components/Header.tsx
index 8eb2d70..eba17ae 100644
--- a/quartz/components/Header.tsx
+++ b/quartz/components/Header.tsx
@@ -1,10 +1,22 @@
-import style from './styles/header.scss'
-import { QuartzComponentProps } from "./types"
+import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "./types"
-export default function Header({ children }: QuartzComponentProps) {
- return <header>
- {children}
- </header>
+const Header: QuartzComponent = ({ children }: QuartzComponentProps) => {
+ return children.length > 0 ? <header>{children}</header> : null
}
-Header.css = style
+Header.css = `
+header {
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ margin: 2rem 0;
+ gap: 1.5rem;
+}
+
+header h1 {
+ margin: 0;
+ flex: auto;
+}
+`
+
+export default (() => Header) satisfies QuartzComponentConstructor
--
Gitblit v1.10.0