Fix code block overflow issue in comments

This commit is contained in:
Rūdolfs Ošiņš
2024-05-09 13:41:37 +02:00
parent 067295ed05
commit 521ccd0928
5 changed files with 16 additions and 10 deletions
+3 -1
View File
@@ -192,7 +192,9 @@
state = "read";
}} />
{:else}
<Markdown breaks {rawPath} content={body} />
<div style:overflow="hidden">
<Markdown breaks {rawPath} content={body} />
</div>
{/if}
</div>
{/if}
-1
View File
@@ -214,7 +214,6 @@
scroll-padding-top: 4rem;
}
.markdown {
max-width: 1024px;
word-break: break-word;
}
.front-matter {
+1
View File
@@ -202,6 +202,7 @@
.revision-description {
margin-left: 2.75rem;
padding-right: 0.5rem;
max-width: fit-content;
}
.author-metadata {
color: var(--color-fill-gray);
+6 -4
View File
@@ -628,10 +628,12 @@
}
}} />
{:else if issue.discussion[0].body}
<Markdown
breaks
content={issue.discussion[0].body}
rawPath={rawPath(project.head)} />
<div style:max-width="fit-content">
<Markdown
breaks
content={issue.discussion[0].body}
rawPath={rawPath(project.head)} />
</div>
{:else}
<span class="txt-missing">No description</span>
{/if}
+6 -4
View File
@@ -848,10 +848,12 @@
}
}} />
{:else if description}
<Markdown
breaks
content={description}
rawPath={rawPath(patch.id)} />
<div style:max-width="fit-content">
<Markdown
breaks
content={description}
rawPath={rawPath(patch.id)} />
</div>
{:else}
<span class="txt-missing">No description available</span>
{/if}