fixed merge conflict; new atree connector image

This commit is contained in:
ferricles 2022-06-15 18:50:07 -07:00
commit b2fa8a81b6
5 changed files with 12 additions and 17 deletions

View file

@ -617,7 +617,7 @@
<div class="col border border-semi-light rounded dark-9 hide-scroll" id="atree-ui" style="height: 500px; overflow-y: auto;">
</div>
<div class="col item-title" id="atree-active">
<div class="col item-title mx-auto" id="atree-active">
Active:
</div>
</div>

View file

@ -475,12 +475,9 @@ a:hover {
}
/* atree hover */
.atree-node {
opacity: 75%;
}
.atree-node:hover {
opacity: 100%;
.atree-selected {
border: 5px solid blue;
border-radius: 50%;
}
.hide-scroll {

View file

@ -548,10 +548,10 @@ function construct_AT(elem, tree) {
let row = document.createElement('div');
row.classList.add("row");
row.id = "atree-row-" + j;
row.style.height = elem.getBoundingClientRect().width / 5 + "px";
row.style.height = elem.getBoundingClientRect().width / 9 + "px";
for (let k = 0; k < 5; k++) {
for (let k = 0; k < 9; k++) {
col = document.createElement('div');
col.classList.add('col', 'px-0');
row.appendChild(col);
@ -575,7 +575,7 @@ function construct_AT(elem, tree) {
if (e.target !== this) {return;}
let tooltip = this.children[0];
tooltip.style.top = this.getBoundingClientRect().bottom + window.scrollY * 1.02 + "px";
tooltip.style.left = this.parentElement.parentElement.getBoundingClientRect().left + (elem.getBoundingClientRect().width * .05 / 2) + "px";
tooltip.style.left = this.parentElement.parentElement.getBoundingClientRect().left + (elem.getBoundingClientRect().width * .2 / 2) + "px";
tooltip.style.display = "block";
});
@ -585,13 +585,11 @@ function construct_AT(elem, tree) {
tooltip.style.display = "none";
});
node_elem.classList.add("atree-node");
node_elem.classList.add("fake-button");
let active_tooltip = document.createElement('div');
active_tooltip.classList.add("rounded-bottom", "dark-7", "border");
active_tooltip.style.width = elem.getBoundingClientRect().width * .95 + "px";
active_tooltip.classList.add("rounded-bottom", "dark-7", "border", "mb-2", "mx-auto");
active_tooltip.style.width = elem.getBoundingClientRect().width * .80 + "px";
active_tooltip.style.display = "none";
// tooltip text formatting
@ -622,11 +620,11 @@ function construct_AT(elem, tree) {
let tooltip = document.getElementById("atree-ab-" + node.title.replaceAll(" ", ""));
if (tooltip.style.display == "block") {
tooltip.style.display = "none";
this.classList.add("atree-node");
this.classList.remove("atree-selected");
}
else {
tooltip.style.display = "block";
this.classList.remove("atree-node");
this.classList.add("atree-selected");
}
});
};

BIN
media/atree/connect-3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7 KiB

BIN
media/atree/connect_t.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 718 B