change columns to 9, adjust sizes, fix selecteds
This commit is contained in:
parent
8df8632c6d
commit
4f43a81313
4 changed files with 12 additions and 17 deletions
|
@ -617,7 +617,7 @@
|
|||
<div class="col border rounded dark-9 hide-scroll" id="atree-ui" style="height: 500px; overflow-y: auto;">
|
||||
|
||||
</div>
|
||||
<div class="col" id="atree-active">
|
||||
<div class="col mx-auto" id="atree-active">
|
||||
Active:
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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 {
|
||||
|
|
18
js/sq2bs.js
18
js/sq2bs.js
|
@ -544,10 +544,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);
|
||||
|
@ -571,7 +571,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";
|
||||
});
|
||||
|
||||
|
@ -581,13 +581,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
|
||||
|
@ -618,11 +616,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
BIN
media/atree/connect-3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7 KiB |
Loading…
Reference in a new issue