Fix collapsing images taking extra clicks.

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

View File

@ -1,5 +1,5 @@
{ {
"type": "tildefriends-app", "type": "tildefriends-app",
"emoji": "🐌", "emoji": "🐌",
"previous": "&h0sTvkhc3zEJw/sH612fy5i554Gr1AKzCBbLkm0KH28=.sha256" "previous": "&YhfwSB0+2jmPcHlxOXN73/81H5VEyQ1MaTJmWZbwqHU=.sha256"
} }

View File

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

2
deps/libbacktrace vendored

@ -1 +1 @@
Subproject commit 11427f31a64b11583fec94b4c2a265c7dafb1ab3 Subproject commit 7ead8c1ea2f4aeafe9c5b9ef8a9461a9ba781aa8