Fixed code copy button scrolling, Added build script

Update .gitignore, composer.php, and compress.bat
This commit is contained in:
2023-12-22 04:21:23 +01:00
parent 446d6e529a
commit 96e1674937
3 changed files with 75 additions and 4 deletions

View File

@@ -756,9 +756,9 @@ class ComposerElement {
// Defining the highlight language.
$_language_class = is_null($this->codeLanguage) ? "nohighlight" : "language-" . $this->codeLanguage;
if($this->codeCopyable) {
$_language_class .= ' p-relative';
}
// Parent container with a relative position to handle the wedge when the code itself is
// horizontally scrollable.
$htmlCode .= '<div class="p-relative">';
// Opening the code element.
// Note: The "mt-10" may have to be removed if it clashes with 'no-margin-top' !
@@ -776,7 +776,7 @@ class ComposerElement {
}
if($this->codeCopyable) {
$htmlCode .= '<div class="wedge wedge-tr primary js-code-copy border border-t-0 border-r-0 rbl-m p-xxxs px-xs wedge-shadow" hidden>';
$htmlCode .= '<div class="wedge wedge-tr primary js-code-copy border border-t-0 border-r-0 rbl-m rtr-s p-xxxs px-xs wedge-shadow" hidden>';
$htmlCode .= '<i class="fad fa-copy"></i> ' . localize("common.action.copy");
$htmlCode .= '</div>';
}
@@ -784,6 +784,9 @@ class ComposerElement {
// Closing code element.
$htmlCode .= '</div>';
// Closing super container.
$htmlCode .= '</div>';
break;
case ComposerElementTypes::HR: