Fix collapsing images taking extra clicks.

This commit is contained in:
2024-05-25 08:09:44 -04:00
parent ba35869b0a
commit 29e79c9484
3 changed files with 3 additions and 3 deletions

View File

@ -172,7 +172,7 @@ class TfMessageElement extends LitElement {
event.srcElement.classList.contains('img_caption')
) {
let next = event.srcElement.nextSibling;
if (next.style.display == 'block') {
if (next.style.display != 'none') {
next.style.display = 'none';
} else {
next.style.display = 'block';