mirror of
https://github.com/gchq/CyberChef.git
synced 2024-11-02 14:11:02 +01: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
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user