make disabled tactics clickable

This commit is contained in:
Jon Eugster
2023-06-20 11:38:05 +02:00
parent ba7ccf88c3
commit c0b7b7a048
2 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ function InventoryItem({name, displayName, locked, disabled, newly, showDoc}) {
disabled ? "Not available in this level" : ""
const handleClick = () => {
if (!locked && !disabled) {
if (!locked) {
showDoc()
}
}
+6 -3
View File
@@ -29,17 +29,20 @@
padding: .1em .5em;
}
.inventory .item.locked,
.inventory .item.disabled {
.inventory .item.locked {
border: solid 1px #ccc;
color: #ccc;
}
.inventory .item.disabled {
color: #d92c2c;
}
.inventory .item.new {
background-color: rgb(255, 242, 190);
}
.inventory .item:not(.locked):not(.disabled) {
.inventory .item:not(.locked) {
cursor: pointer;
}