From fa6c02d3213dfd4e6da8e78bd3a2e7004555fd01 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Wed, 24 Jan 2024 01:08:56 +0000
Subject: [PATCH] fix: make search result card block

---
 quartz/components/styles/graph.scss |   20 +++++++++++---------
 1 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/quartz/components/styles/graph.scss b/quartz/components/styles/graph.scss
index 76323bb..3deaa1f 100644
--- a/quartz/components/styles/graph.scss
+++ b/quartz/components/styles/graph.scss
@@ -1,7 +1,9 @@
+@use "../../styles/variables.scss" as *;
+
 .graph {
   & > h3 {
     font-size: 1rem;
-    margin: 0
+    margin: 0;
   }
 
   & > .graph-outer {
@@ -9,9 +11,9 @@
     border: 1px solid var(--lightgray);
     box-sizing: border-box;
     height: 250px;
-    width: 300px;
     margin: 0.5em 0;
     position: relative;
+    overflow: hidden;
 
     & > #global-graph-icon {
       color: var(--dark);
@@ -24,17 +26,13 @@
       top: 0;
       right: 0;
       border-radius: 4px;
-      background-color: transparent; 
+      background-color: transparent;
       transition: background-color 0.5s ease;
       cursor: pointer;
       &:hover {
         background-color: var(--lightgray);
       }
     }
-
-    & > #graph-container > svg {
-      margin-bottom: -5px;
-    }
   }
 
   & > #global-graph-outer {
@@ -44,9 +42,9 @@
     top: 0;
     width: 100vw;
     height: 100%;
-    overflow: scroll;
     backdrop-filter: blur(4px);
     display: none;
+    overflow: hidden;
 
     &.active {
       display: inline-block;
@@ -54,7 +52,7 @@
 
     & > #global-graph-container {
       border: 1px solid var(--lightgray);
-      background-color: var(--light); 
+      background-color: var(--light);
       border-radius: 5px;
       box-sizing: border-box;
       position: fixed;
@@ -63,6 +61,10 @@
       transform: translate(-50%, -50%);
       height: 60vh;
       width: 50vw;
+
+      @media all and (max-width: $fullPageWidth) {
+        width: 90%;
+      }
     }
   }
 }

--
Gitblit v1.10.0