Fixing broken markdown images taking up too much space. Fixed unnessisary expantion of markdown images not in center channel.
Этот коммит содержится в:
@@ -94,7 +94,7 @@ class MattermostMarkdownRenderer extends marked.Renderer {
|
|||||||
if (title) {
|
if (title) {
|
||||||
out += ' title="' + title + '"';
|
out += ' title="' + title + '"';
|
||||||
}
|
}
|
||||||
out += ' onload="window.markdownImageLoaded(this)" class="markdown-inline-img"';
|
out += ' onload="window.markdownImageLoaded(this)" onerror="window.markdownImageLoaded(this)" class="markdown-inline-img"';
|
||||||
out += this.options.xhtml ? '/>' : '>';
|
out += this.options.xhtml ? '/>' : '>';
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,11 +8,14 @@
|
|||||||
margin-left: 4px;
|
margin-left: 4px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.markdown-inline-img {
|
#post-list {
|
||||||
-moz-force-broken-image-icon: 1;
|
.markdown-inline-img {
|
||||||
max-height: 500px;
|
-moz-force-broken-image-icon: 1;
|
||||||
height: 500px;
|
max-height: 500px;
|
||||||
|
height: 500px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-body {
|
.post-body {
|
||||||
hr {
|
hr {
|
||||||
height: 4px;
|
height: 4px;
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user