From ec73f2ec49f4a49e8bf09126bda5240177c32231 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Fri, 5 Feb 2021 08:30:54 +0100 Subject: [PATCH] Change comment styling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/components/views/messages/TextualBody.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/views/messages/TextualBody.js b/src/components/views/messages/TextualBody.js index bd0d0e3457..71f7572a25 100644 --- a/src/components/views/messages/TextualBody.js +++ b/src/components/views/messages/TextualBody.js @@ -111,8 +111,8 @@ export default class TextualBody extends React.Component { const codes = ReactDOM.findDOMNode(this).getElementsByTagName("code"); if (codes.length > 0) { for (let i = 0; i < codes.length; i++) { - /* Do this asynchronously: parsing code takes time and we don't - * need to block the DOM update on it. */ + // Do this asynchronously: parsing code takes time and we don't + // need to block the DOM update on it. setTimeout(() => { if (this._unmounted) return; for (let i = 0; i < pres.length; i++) { @@ -125,8 +125,8 @@ export default class TextualBody extends React.Component { } _addCodeExpansionButton(div, pre) { - /* Calculate how many percent does the pre element take up. - * If it's less than 30% we don't add the expansion button. */ + // Calculate how many percent does the pre element take up. + // If it's less than 30% we don't add the expansion button. const percentageOfViewport = pre.offsetHeight / window.innerHeight * 100; if (percentageOfViewport < 30) return; @@ -160,8 +160,8 @@ export default class TextualBody extends React.Component { const button = document.createElement("span"); button.className = "mx_EventTile_button mx_EventTile_copyButton "; - /* Check if expansion button exists. If so - * we put the copy button to the bottom */ + // Check if expansion button exists. If so + // we put the copy button to the bottom const expansionButtonExists = div.getElementsByClassName("mx_EventTile_button"); if (expansionButtonExists.length > 0) button.className += "mx_EventTile_buttonBottom";