mirror of https://github.com/CIRCL/lookyloo
fix: scroll to screenshot, add margin
parent
9359602bfa
commit
a2d6ff7b49
|
@ -171,3 +171,7 @@ table td p {
|
|||
[data-toggle="collapse"]:not(.collapsed) .if-collapsed {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#screenshot_thumbnail {
|
||||
scroll-margin: 50px;
|
||||
}
|
||||
|
|
|
@ -89,7 +89,7 @@
|
|||
{% else %}
|
||||
window.addEventListener('DOMContentLoaded', (event) => {
|
||||
let thumbnail = document.getElementById('screenshot_thumbnail');
|
||||
thumbnail.scrollIntoView({behavior: "smooth", block: "center", inline: "center"});
|
||||
thumbnail.scrollIntoView({behavior: "smooth", block: "end", inline: "center"});
|
||||
});
|
||||
{% endif%}
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue