From fe2e16d937e2b57fb2bb1d10dea47db7256a4a49 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Mon, 24 Mar 2025 01:08:07 +0000
Subject: [PATCH] fix: disallow user-select in popover
---
quartz/components/styles/popover.scss | 29 +++++++++++++++++++++--------
1 files changed, 21 insertions(+), 8 deletions(-)
diff --git a/quartz/components/styles/popover.scss b/quartz/components/styles/popover.scss
index 141b89d..872045a 100644
--- a/quartz/components/styles/popover.scss
+++ b/quartz/components/styles/popover.scss
@@ -36,16 +36,29 @@
box-shadow: 6px 6px 36px 0 rgba(0, 0, 0, 0.25);
overflow: auto;
white-space: normal;
+ user-select: none;
+ cursor: default;
}
- & > .popover-inner[data-content-type="image"] {
- padding: 0;
- max-height: 100%;
+ & > .popover-inner[data-content-type] {
+ &[data-content-type*="pdf"],
+ &[data-content-type*="image"] {
+ padding: 0;
+ max-height: 100%;
+ }
- img {
- margin: 0;
- border-radius: 0;
- display: block;
+ &[data-content-type*="image"] {
+ img {
+ margin: 0;
+ border-radius: 0;
+ display: block;
+ }
+ }
+
+ &[data-content-type*="pdf"] {
+ iframe {
+ width: 100%;
+ }
}
}
@@ -59,7 +72,7 @@
opacity 0.3s ease,
visibility 0.3s ease;
- @media all and (max-width: $mobileBreakpoint) {
+ @media all and ($mobile) {
display: none !important;
}
}
--
Gitblit v1.10.0