Skip to content

Commit 19634ed

Browse files
authored
Fix markdown padding (#1810)
Moves the markdown padding inside the component so the scrollbar stays glued to the edge
1 parent ab99c78 commit 19634ed

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

frontend/app/element/markdown.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
font-family: var(--markdown-font-family);
2020
font-size: var(--markdown-font-size);
2121
overflow-wrap: break-word;
22+
padding: 5px 15px;
2223

2324
&.non-scrollable {
2425
overflow: hidden;

frontend/app/view/preview/preview.scss

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
align-items: start;
1414
justify-content: start;
1515
overflow: auto;
16-
.markdown {
17-
margin: 10px 5px;
18-
}
1916
}
2017

2118
&.view-preview-text {
@@ -40,8 +37,7 @@
4037
object-fit: contain;
4138
}
4239
}
43-
&.view-preview-pdf,
44-
&.view-preview-markdown {
40+
&.view-preview-pdf {
4541
padding: 5px;
4642
}
4743
}

0 commit comments

Comments
 (0)