Merge pull request #2117 from asaadmahmoodspin/ui-improvements
Fixing single line code block on firefox
Этот коммит содержится в:
@@ -151,6 +151,10 @@ class MattermostMarkdownRenderer extends marked.Renderer {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
codespan(text) {
|
||||||
|
return '<pre class="text-nowrap">' + super.codespan(text) + '</pre>';
|
||||||
|
}
|
||||||
|
|
||||||
br() {
|
br() {
|
||||||
if (this.formattingOptions.singleline) {
|
if (this.formattingOptions.singleline) {
|
||||||
return ' ';
|
return ' ';
|
||||||
|
|||||||
@@ -54,6 +54,13 @@
|
|||||||
code {
|
code {
|
||||||
white-space: pre;
|
white-space: pre;
|
||||||
}
|
}
|
||||||
|
pre {
|
||||||
|
&.text-nowrap {
|
||||||
|
code {
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.markdown__table {
|
.markdown__table {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user