From a67a8d7aa9da06d8f87d0f48bac630728a4ea394 Mon Sep 17 00:00:00 2001
From: kabirgh <15871468+kabirgh@users.noreply.github.com>
Date: Mon, 19 Feb 2024 18:58:15 +0000
Subject: [PATCH] feat: implement getDependencyGraph for TagPage (#872)

---
 quartz/components/styles/popover.scss |   36 ++++++++++++++++++++++++++++--------
 1 files changed, 28 insertions(+), 8 deletions(-)

diff --git a/quartz/components/styles/popover.scss b/quartz/components/styles/popover.scss
index 9b79447..141b89d 100644
--- a/quartz/components/styles/popover.scss
+++ b/quartz/components/styles/popover.scss
@@ -1,3 +1,5 @@
+@use "../../styles/variables.scss" as *;
+
 @keyframes dropin {
   0% {
     opacity: 0;
@@ -19,17 +21,32 @@
   padding: 1rem;
 
   & > .popover-inner {
+    position: relative;
     width: 30rem;
-    height: 20rem;
+    max-height: 20rem;
     padding: 0 1rem 1rem 1rem;
     font-weight: initial;
-    line-height: initial;
+    font-style: initial;
+    line-height: normal;
     font-size: initial;
-    border: 1px solid var(--gray);
+    font-family: var(--bodyFont);
+    border: 1px solid var(--lightgray);
     background-color: var(--light);
     border-radius: 5px;
-    box-shadow: 6px 6px 36px 0 rgba(0,0,0,0.25);
-    overflow: scroll;
+    box-shadow: 6px 6px 36px 0 rgba(0, 0, 0, 0.25);
+    overflow: auto;
+    white-space: normal;
+  }
+
+  & > .popover-inner[data-content-type="image"] {
+    padding: 0;
+    max-height: 100%;
+
+    img {
+      margin: 0;
+      border-radius: 0;
+      display: block;
+    }
   }
 
   h1 {
@@ -38,14 +55,17 @@
 
   visibility: hidden;
   opacity: 0;
-  transition: opacity 0.3s ease, visibility 0.3s ease;
+  transition:
+    opacity 0.3s ease,
+    visibility 0.3s ease;
 
-  @media all and (max-width: 600px) {
+  @media all and (max-width: $mobileBreakpoint) {
     display: none !important;
   }
 }
 
-a:hover .popover, .popover:hover {
+a:hover .popover,
+.popover:hover {
   animation: dropin 0.3s ease;
   animation-fill-mode: forwards;
   animation-delay: 0.2s;

--
Gitblit v1.10.0