combiner new line

This commit is contained in:
Mashy 2019-11-22 15:46:49 +10:00
parent 3a0692a2a5
commit 637d3e5be8
2 changed files with 7 additions and 3 deletions

View File

@ -50,6 +50,7 @@
grid-area: combiner;
display: flex;
flex-direction: column;
line-height: 1.3;
padding: 0;
@ -59,6 +60,9 @@
}
button {
line-height: 1.3;
font-size: 1.25em;
letter-spacing: 0.1em;
background-color: #996100;
border-radius: 0;

View File

@ -34,12 +34,12 @@ function combinerBtn(props) {
let bits = 0;
storeSelect.forEach(item => bits += item[0] + 1);
text = bits
? `Buy ${comboItem} - ${bits}b`
: `Combine - ${comboItem}`;
? <p>Buy<br/>{comboItem}<br />{bits}b</p>
: <p>Combine<br />{comboItem}</p>;
if (vbox.bits >= bits) mouseEvent = sendVboxCombine;
} else if (stashSelect.length === 0 && storeSelect.length === 1) {
const item = storeSelect[0];
text = `Buy ${vbox.free[item[0]][item[1]]} ${item[0] + 1}b`;
text = <p>Buy<br />{vbox.free[item[0]][item[1]]}<br />{item[0] + 1}b</p>;
mouseEvent = vboxBuySelected;
} else {
for (let i = 0; i < 3; i++) {