From 34334eabed151cf5fa881d6b34f75107a2d3871e Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Tue, 06 Feb 2024 04:36:31 +0000
Subject: [PATCH] perf: don't load mermaid if its not on the page
---
quartz/components/styles/search.scss | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/quartz/components/styles/search.scss b/quartz/components/styles/search.scss
index 3ad774e..d25d0f8 100644
--- a/quartz/components/styles/search.scss
+++ b/quartz/components/styles/search.scss
@@ -59,6 +59,10 @@
margin-left: auto;
margin-right: auto;
+ @media all and (max-width: $fullPageWidth) {
+ width: 90%;
+ }
+
& > * {
width: 100%;
border-radius: 7px;
--
Gitblit v1.10.0