diff --git a/lookyloo/lookyloo.py b/lookyloo/lookyloo.py index 53434c9..19f61a8 100644 --- a/lookyloo/lookyloo.py +++ b/lookyloo/lookyloo.py @@ -24,7 +24,7 @@ from defang import refang # type: ignore import dns.resolver import dns.rdatatype from har2tree import CrawledTree, Har2TreeError, HarFile, HostNode, URLNode -from PIL import Image +from PIL import Image # type: ignore from pymisp import MISPEvent from pymisp.tools import URLObject, FileObject from redis import Redis diff --git a/website/web/static/tree.js b/website/web/static/tree.js index 61bc724..5a9eb5e 100644 --- a/website/web/static/tree.js +++ b/website/web/static/tree.js @@ -415,7 +415,7 @@ function update(root, computed_node_width=0) { }); // Rectangle around the domain name & icons - let selected_node_bbox_init = d3.select(this).select('text').node().getBoundingClientRect(); + let selected_node_bbox_init = d3.select(this).node().getBoundingClientRect(); d3.select(this).select('rect') .attr('height', node_height + 5) .attr('width', selected_node_bbox_init.width + 50); @@ -477,7 +477,7 @@ function update(root, computed_node_width=0) { if (d.data.contains_rendered_urlnode) { d3.select(this).append("svg").append('rect') .attr('x', selected_node_bbox.width/3) - .attr('y', node_height - 10) + .attr('y', node_height - 3) .attr('width', thumbnail_size) .attr('height', thumbnail_size) .attr('fill', 'white') @@ -485,7 +485,7 @@ function update(root, computed_node_width=0) { d3.select(this).append('image') .attr('x', selected_node_bbox.width/3) - .attr('y', node_height - 10) + .attr('y', node_height - 3) .attr('id', 'screenshot_thumbnail') .attr("width", thumbnail_size) .attr("height", thumbnail_size)