1
0
Fork 0
forked from Mirrors/gomuks

web/timeline: make code blocks scrollable

This commit is contained in:
Tulir Asokan 2024-10-11 00:05:07 +03:00
parent 2018952151
commit f3bbb4c98e

View file

@ -42,10 +42,12 @@ div.timeline-event {
> div.event-content {
grid-area: content;
overflow: hidden;
}
}
div.html-body {
overflow: hidden;
img[data-mx-emoticon] {
vertical-align: middle;
}
@ -55,6 +57,12 @@ div.html-body {
padding-left: .5rem;
}
pre {
width: 100%;
max-height: max(50vh, 400px);
overflow: auto;
}
p, ul, ol, dl, table, pre, blockquote {
&:not(:last-child) {
margin: 0 0 .25rem;