fix: scroll to screenshot, add margin

pull/186/head
Raphaël Vinot 2021-03-30 00:45:24 +02:00
parent 9359602bfa
commit a2d6ff7b49
2 changed files with 5 additions and 1 deletions

View File

@ -171,3 +171,7 @@ table td p {
[data-toggle="collapse"]:not(.collapsed) .if-collapsed {
display: none;
}
#screenshot_thumbnail {
scroll-margin: 50px;
}

View File

@ -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>