fix(style): reasonable page width for rich search preview

This commit is contained in:
Jacky Zhao 2024-02-02 00:29:45 -08:00
parent 0416c03ae6
commit 5a36e5b68d

View file

@ -134,14 +134,7 @@
display: block; display: block;
box-sizing: border-box; box-sizing: border-box;
overflow: hidden; overflow: hidden;
& .preview-inner {
margin: 0 auto;
padding: 1em;
height: 100%;
width: 100%;
box-sizing: border-box; box-sizing: border-box;
overflow-y: auto;
font-family: inherit; font-family: inherit;
color: var(--dark); color: var(--dark);
line-height: 1.5em; line-height: 1.5em;
@ -149,9 +142,12 @@
background: var(--light); background: var(--light);
border-top-right-radius: 5px; border-top-right-radius: 5px;
border-bottom-right-radius: 5px; border-bottom-right-radius: 5px;
box-shadow: overflow-y: auto;
0 14px 50px rgba(27, 33, 48, 0.12), padding: 1rem;
0 10px 30px rgba(27, 33, 48, 0.16);
& .preview-inner {
margin: 0 auto;
width: min($pageWidth, 100%);
} }
a.internal { a.internal {