Fix preformatted text not overflowing

pull/4/head
Alexey Golub 8 years ago
parent 8662c8da04
commit 0bfcac4749

@ -91,10 +91,10 @@ namespace DiscordChatExporter.Services
"<a href=\"$1\">$1</a>"); "<a href=\"$1\">$1</a>");
// Preformatted multiline // Preformatted multiline
content = Regex.Replace(content, "```([^`]*?)```", e => "<pre>" + e.Groups[1].Value + "</pre>"); content = Regex.Replace(content, "```([^`]*?)```", e => "<span class=\"pre\">" + e.Groups[1].Value + "</span>");
// Preformatted // Preformatted
content = Regex.Replace(content, "`([^`]*?)`", e => "<pre>" + e.Groups[1].Value + "</pre>"); content = Regex.Replace(content, "`([^`]*?)`", e => "<span class=\"pre\">" + e.Groups[1].Value + "</span>");
// Bold // Bold
content = Regex.Replace(content, "\\*\\*([^\\*]*?)\\*\\*", "<b>$1</b>"); content = Regex.Replace(content, "\\*\\*([^\\*]*?)\\*\\*", "<b>$1</b>");

@ -18,21 +18,19 @@
a:hover { a:hover {
text-decoration: underline; text-decoration: underline;
} }
pre { span.pre {
margin: 0;
padding-left: 2px; padding-left: 2px;
padding-right: 2px; padding-right: 2px;
background-color: #f9f9f9; background-color: #f9f9f9;
font-family: Consolas, Courier New, Courier, Monospace; font-family: Consolas, Courier New, Courier, Monospace;
display: inline;
} }
div#info { div#info {
width: 100%; max-width: 100%;
margin-bottom: 20px; margin-bottom: 20px;
color: #939799; color: #939799;
} }
div#log { div#log {
width: 100%; max-width: 100%;
} }
div.msg { div.msg {
display: flex; display: flex;

Loading…
Cancel
Save