Fix markdown padding (#1810)

Moves the markdown padding inside the component so the scrollbar stays
glued to the edge
This commit is contained in:
Evan Simkowitz 2025-01-23 12:23:45 -08:00 committed by GitHub
parent ab99c786e5
commit 19634ed5df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 5 deletions

View File

@ -19,6 +19,7 @@
font-family: var(--markdown-font-family);
font-size: var(--markdown-font-size);
overflow-wrap: break-word;
padding: 5px 15px;
&.non-scrollable {
overflow: hidden;

View File

@ -13,9 +13,6 @@
align-items: start;
justify-content: start;
overflow: auto;
.markdown {
margin: 10px 5px;
}
}
&.view-preview-text {
@ -40,8 +37,7 @@
object-fit: contain;
}
}
&.view-preview-pdf,
&.view-preview-markdown {
&.view-preview-pdf {
padding: 5px;
}
}