From 5a36e5b68d9d49ddcbfc87421216bfa6b9d913cf Mon Sep 17 00:00:00 2001 From: Jacky Zhao Date: Fri, 2 Feb 2024 00:29:45 -0800 Subject: [PATCH] fix(style): reasonable page width for rich search preview --- quartz/components/styles/search.scss | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/quartz/components/styles/search.scss b/quartz/components/styles/search.scss index b4bb64a..8703399 100644 --- a/quartz/components/styles/search.scss +++ b/quartz/components/styles/search.scss @@ -134,24 +134,20 @@ display: block; box-sizing: border-box; overflow: hidden; + box-sizing: border-box; + font-family: inherit; + color: var(--dark); + line-height: 1.5em; + font-weight: 400; + background: var(--light); + border-top-right-radius: 5px; + border-bottom-right-radius: 5px; + overflow-y: auto; + padding: 1rem; & .preview-inner { margin: 0 auto; - padding: 1em; - height: 100%; - width: 100%; - box-sizing: border-box; - overflow-y: auto; - font-family: inherit; - color: var(--dark); - line-height: 1.5em; - font-weight: 400; - background: var(--light); - border-top-right-radius: 5px; - border-bottom-right-radius: 5px; - box-shadow: - 0 14px 50px rgba(27, 33, 48, 0.12), - 0 10px 30px rgba(27, 33, 48, 0.16); + width: min($pageWidth, 100%); } a.internal {