If a tab can't be added, show the shadow on the...

last tab to indicate there are more tabs
This commit is contained in:
j433866 2019-05-30 14:32:05 +01:00
parent 11d2a96ecb
commit b232069631
2 changed files with 6 additions and 0 deletions

View File

@ -1283,6 +1283,9 @@ class InputWaiter {
action: "updateTabHeader",
data: inputNum
});
} else if (numTabs === this.maxTabs) {
// Can't create a new tab
document.getElementById("input-tabs").lastElementChild.style.boxShadow = "-15px 0px 15px -15px var(--primary-border-colour) inset";
}
if (changeTab) {

View File

@ -663,6 +663,9 @@ class OutputWaiter {
document.getElementById("save-all-to-file").style.display = "none";
}
} else if (numTabs === this.maxTabs) {
// Can't create a new tab
document.getElementById("output-tabs").lastElementChild.style.boxShadow = "-15px 0px 15px -15px var(--primary-border-colour) inset";
}
if (changeTab) {