Skip to content
Snippets Groups Projects
Commit 6e068a55 authored by Matthias Konitzny's avatar Matthias Konitzny :fire:
Browse files

Added text labels - may need a fit text variant in the future.

parent a8ff5543
No related branches found
No related tags found
No related merge requests found
......@@ -153,6 +153,13 @@ class NodeNeighborOverlay {
linkDiv.appendChild(linkImage);
}
if ("name" in target) {
Helpers.createHTMLElement("p", linkDiv, {
className: "bottom-container-link-text",
innerText: target.name,
});
}
jQuery(linkDiv).on("click", () => {
this.graph.focusOnNode(target);
this.infoOverlay.updateInfoOverlay(target);
......
......@@ -195,6 +195,13 @@
display: block;
}
.bottom-container-link-text {
font-size: 1vw;
/*font-size: 10px;*/
font-weight: bold;
text-align: center;
}
.link-img {
min-width: 70px;
width: 70px;
......@@ -207,6 +214,7 @@
background-color: white;
display: flex;
align-items: center;
justify-content: center;
}
.bottom-container-nav-tab {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment