fix accordions on firefox
authorClaromes <claromes@hey.com>
Wed, 17 Jul 2024 00:38:37 +0000 (21:38 -0300)
committerClaromes <claromes@hey.com>
Wed, 17 Jul 2024 00:38:37 +0000 (21:38 -0300)
waybacktweets/api/visualize.py

index bb4def00580dbebf11ccc429bd957ad8f63e1bf4..f679ca58750ff025c6190d865adab10ee4f4986e 100644 (file)
@@ -131,7 +131,7 @@ class HTMLTweetsVisualizer:
                         html += '<div class="accordion-content">\n'
 
                         html += f'<div id="loading_{index}_{key_cleaned}" class="loading">Loading...</div>\n'
-                        html += f'<iframe id="iframe_{index}_{key_cleaned}" frameborder="0" scrolling="auto" loading="lazy" style="display: none;" onload="document.getElementById(\'loading_{index}_{key_cleaned}\').style.display=\'none\'; this.style.display=\'block\';"></iframe>\n'
+                        html += f'<iframe id="iframe_{index}_{key_cleaned}" height="600" width="600" frameborder="0" scrolling="auto" style="display: none;" onload="document.getElementById(\'loading_{index}_{key_cleaned}\').style.display=\'none\'; this.style.display=\'block\';"></iframe>\n'
                         html += "</div>\n"
                         html += "</div>\n"