chg: small visual improvments

pull/136/head
Raphaël Vinot 2020-12-09 21:08:34 +01:00
parent 3c6eca3567
commit ed6a53d211
2 changed files with 4 additions and 4 deletions

View File

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

View File

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