fix(StatusExpress): button width (#1081)

This commit is contained in:
Mikhail Lebedinets 2024-01-17 15:55:19 +03:00 committed by GitHub
parent c863e07908
commit c2be06b58f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -766,8 +766,6 @@
<script n:if="isset($thisUser) && $user->getId() == $thisUser->getId()" n:syntax="off">
function setStatusEditorShown(shown) {
document.getElementById("status_editor").style.display = shown ? "block" : "none";
if(!document.status_popup_form.submit.style.width)
document.status_popup_form.submit.style.width = document.status_popup_form.submit.offsetWidth + 4 + "px"
}
document.addEventListener("click", event => {
@ -820,4 +818,4 @@
{block bodyScripts}
{script "js/al_despacito_wall.js"}
{/block}
{/block}