mirror of
https://github.com/gchq/CyberChef
synced 2025-01-09 11:08:47 +00:00
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:
parent
11d2a96ecb
commit
b232069631
2 changed files with 6 additions and 0 deletions
|
@ -1283,6 +1283,9 @@ class InputWaiter {
|
||||||
action: "updateTabHeader",
|
action: "updateTabHeader",
|
||||||
data: inputNum
|
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) {
|
if (changeTab) {
|
||||||
|
|
|
@ -663,6 +663,9 @@ class OutputWaiter {
|
||||||
|
|
||||||
document.getElementById("save-all-to-file").style.display = "none";
|
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) {
|
if (changeTab) {
|
||||||
|
|
Loading…
Reference in a new issue