expandable text - too much space

this is the code i use… @ridiculoushobby

let fullText; // variable to hold the full text
let shortText; // variable to hold the short version of the text

$w.onReady(function () {
// how many characters to include in the shortened version
const shortTextLength = 0;
// read the full text and store it in the fullText variable
fullText = $w(“#text104”).html;
// grab the number of characters defined in shortTextLength and store them in the shortText variable
shortText = fullText.substr(0, shortTextLength) + “”;
// set the contents of the text element to be the short text
$w(“#text104”).html = shortText;
});
export function button5_click() {
// check the contents of the text element
if ($w(“#text104”).html.length < fullText.length) {
// if currently displaying short text, display the full text
$w(“#text104”).html = fullText;
$w(“#button5”).label = “Show less”;
} else {
// if currently displaying full text, display the short text
$w(“#text104”).html = shortText;
$w(“#button5”).label = “Show more”;
}
}