You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
@@ -128,7 +128,6 @@ export default class TextualBody extends React.Component {
|
||||
/* 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;
|
||||
console.log("expansionButtonExists", percentageOfViewport);
|
||||
if (percentageOfViewport < 30) return;
|
||||
|
||||
const button = document.createElement("span");
|
||||
|
||||
Reference in New Issue
Block a user