* for #94, for #95: more ui updates * fix #95: fix "name" input; inset the panel shadow
This commit is contained in:
committed by
Jonathan Kingston
parent
aec93f6757
commit
b5bde290af
@@ -233,7 +233,7 @@ Logic.registerPanel(P_CONTAINERS_LIST, {
|
||||
</div>
|
||||
</td>
|
||||
<td class="open-newtab">${identity.name}</td>
|
||||
<td class="info">></td>`;
|
||||
<td class="show-tabs"><img src="/img/container-arrow.svg" class="show-tabs show-tabs-img" /></td>`;
|
||||
|
||||
tr.addEventListener("click", e => {
|
||||
if (e.target.matches(".open-newtab")) {
|
||||
@@ -250,7 +250,7 @@ Logic.registerPanel(P_CONTAINERS_LIST, {
|
||||
}).catch(() => {
|
||||
window.close();
|
||||
});
|
||||
} else if (e.target.matches(".info")) {
|
||||
} else if (e.target.matches(".show-tabs")) {
|
||||
Logic.showPanel(P_CONTAINER_INFO, identity);
|
||||
}
|
||||
});
|
||||
@@ -322,7 +322,7 @@ Logic.registerPanel(P_CONTAINER_INFO, {
|
||||
hideShowLabel.innerText = identity.hasHiddenTabs ? "Show these container tabs" : "Hide these container tabs";
|
||||
|
||||
// Let's remove all the previous tabs.
|
||||
for (let trTab of document.getElementsByClassName("container-info-tab")) { // eslint-disable-line prefer-const
|
||||
for (let trTab of document.getElementsByClassName("container-info-tab-row")) { // eslint-disable-line prefer-const
|
||||
trTab.remove();
|
||||
}
|
||||
|
||||
@@ -339,10 +339,10 @@ Logic.registerPanel(P_CONTAINER_INFO, {
|
||||
for (let tab of tabs) { // eslint-disable-line prefer-const
|
||||
const tr = document.createElement("tr");
|
||||
fragment.appendChild(tr);
|
||||
tr.classList.add("container-info-tab");
|
||||
tr.classList.add("container-info-tab-row");
|
||||
tr.innerHTML = `
|
||||
<td><img class="icon" src="${tab.favicon}" /></td>
|
||||
<td>${tab.title}</td>`;
|
||||
<td class="container-info-tab-title">${tab.title}</td>`;
|
||||
|
||||
// On click, we activate this tab. But only if this tab is active.
|
||||
if (tab.active) {
|
||||
|
||||
Reference in New Issue
Block a user