mirror of https://github.com/vector-im/riot-web
Change comment styling
Co-authored-by: J. Ryan Stinnett <jryans@gmail.com>pull/21833/head
parent
9db86a38f6
commit
9bd8fef6b3
|
@ -96,8 +96,8 @@ export default class TextualBody extends React.Component {
|
||||||
const pres = ReactDOM.findDOMNode(this).getElementsByTagName("pre");
|
const pres = ReactDOM.findDOMNode(this).getElementsByTagName("pre");
|
||||||
if (pres.length > 0) {
|
if (pres.length > 0) {
|
||||||
for (let i = 0; i < pres.length; i++) {
|
for (let i = 0; i < pres.length; i++) {
|
||||||
/* Wrap a div around <pre> so that the copy button can be correctly positioned
|
// Wrap a div around <pre> so that the copy button can be correctly positioned
|
||||||
* when the <pre> overflows and is scrolled horizontally. */
|
// when the <pre> overflows and is scrolled horizontally.
|
||||||
const div = this._wrapInDiv(pres[i]);
|
const div = this._wrapInDiv(pres[i]);
|
||||||
this._handleCodeBlockExpansion(pres[i]);
|
this._handleCodeBlockExpansion(pres[i]);
|
||||||
this._addCodeExpansionButton(div, pres[i]);
|
this._addCodeExpansionButton(div, pres[i]);
|
||||||
|
|
Loading…
Reference in New Issue