mirror of
https://github.com/gchq/CyberChef
synced 2025-12-15 15:53:30 +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:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user