mirror of https://github.com/zulip/zulip.git
messages: Wrap inline code blocks on long lines.
In25b28bf82c
and thencb1bc70ab0
, we attempted to make long code blocks scroll in a reasonable fashion, without much success. This change causes code blocks to be line-wrapped, without needing to set `overflow-y: hidden` for paragraphs (which cause problems with taller elements like emoji that overlfowed wrong). Our octopi finally have legs again. It's not clear that this is the final answer, but it's the best version we've found so far.
This commit is contained in:
parent
16e37f8874
commit
129d88825c
|
@ -328,6 +328,11 @@ code {
|
|||
font-size: 0.857em;
|
||||
}
|
||||
|
||||
.message_content p code {
|
||||
white-space: pre-wrap;
|
||||
padding: 0px 4px;
|
||||
}
|
||||
|
||||
.codehilite {
|
||||
display: block !important;
|
||||
border: none !important;
|
||||
|
@ -1216,11 +1221,6 @@ div.focused_table {
|
|||
position: relative;
|
||||
}
|
||||
|
||||
.message_content p {
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
}
|
||||
|
||||
.message_edit_content {
|
||||
line-height: 18px;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue