Skip to content
Snippets Groups Projects
Commit 4460c4ec authored by Harm Kube's avatar Harm Kube
Browse files

Cleaning up some unused code

parent bf58b9c8
No related branches found
No related tags found
No related merge requests found
Pipeline #53287 passed
...@@ -309,17 +309,3 @@ ...@@ -309,17 +309,3 @@
flex-direction: row; flex-direction: row;
overflow-x: auto; overflow-x: auto;
} }
.category-div {
padding: 0;
background-color: #5d5a5a;
color: #444;
cursor: pointer;
width: 5%;
height: 100%;
border: none;
outline: none;
float: left;
display: flex;
flex-direction: column;
}
\ No newline at end of file
...@@ -37,7 +37,6 @@ class NodeNeighborOverlay { ...@@ -37,7 +37,6 @@ class NodeNeighborOverlay {
); );
coll.className = "collapsible"; coll.className = "collapsible";
coll.innerText = "Verwandte Inhalte"; coll.innerText = "Verwandte Inhalte";
// TODO: Scrolling wheel for content
var contentTabs = Helpers.createDiv( var contentTabs = Helpers.createDiv(
"neighbor-content-tabs", "neighbor-content-tabs",
bottomContainerDiv bottomContainerDiv
...@@ -54,7 +53,6 @@ class NodeNeighborOverlay { ...@@ -54,7 +53,6 @@ class NodeNeighborOverlay {
this.type === "link" this.type === "link"
? this.graph.edgeColors ? this.graph.edgeColors
: this.graph.nodeColors; : this.graph.nodeColors;
// TODO: Colors only fill little part of div
for (const [cls, color] of Object.entries(colors)) { for (const [cls, color] of Object.entries(colors)) {
...@@ -64,7 +62,6 @@ class NodeNeighborOverlay { ...@@ -64,7 +62,6 @@ class NodeNeighborOverlay {
); );
collTab.className = "collapsible"; collTab.className = "collapsible";
collTab.innerText = cls; collTab.innerText = cls;
//collTab.style.backgroundColor = color;
collTab.style.borderLeftColor = color; collTab.style.borderLeftColor = color;
collTab.style.borderLeftWidth = "12px"; collTab.style.borderLeftWidth = "12px";
collTab.type = cls; collTab.type = cls;
...@@ -88,7 +85,8 @@ class NodeNeighborOverlay { ...@@ -88,7 +85,8 @@ class NodeNeighborOverlay {
} }
/** /**
* Clears the images from all tab content pages. * Clears the images from all tab content pages and makes the object
* invisible.
*/ */
clearTabContentPages() { clearTabContentPages() {
for (const page of Object.values(this.tabContentPages)) { for (const page of Object.values(this.tabContentPages)) {
...@@ -151,6 +149,10 @@ class NodeNeighborOverlay { ...@@ -151,6 +149,10 @@ class NodeNeighborOverlay {
this.hideContentPages(); this.hideContentPages();
} }
/**
* Hides all the categories of a node that are not represented by a link
* to another neighbor.
*/
hideContentPages () { hideContentPages () {
for (const page of Object.values(this.tabContentPages)) { for (const page of Object.values(this.tabContentPages)) {
if(!page.hasChildNodes()) { if(!page.hasChildNodes()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment