fix combo preview
This commit is contained in:
parent
b9e4eca8cf
commit
8641e74f9b
@ -31,11 +31,10 @@
|
|||||||
border-top: 0.1em solid @gray;
|
border-top: 0.1em solid @gray;
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
button {
|
||||||
margin: 1em 0 0 0;
|
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
letter-spacing: 0.1em;
|
letter-spacing: 0.1em;
|
||||||
background-color: #421010;
|
background-color: #421010;
|
||||||
@ -58,32 +57,21 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.stash-hdr {
|
.stash-hdr {
|
||||||
|
grid-area: stash-hdr;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: column;
|
flex-flow: column;
|
||||||
justify-content: center;
|
|
||||||
|
|
||||||
grid-area: stash-hdr;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border: 0.1em solid @gray;
|
border: 0.1em solid @gray;
|
||||||
border-right: 0;
|
border-right: 0;
|
||||||
|
|
||||||
h3 {
|
h2 {
|
||||||
margin-bottom: 2.5em;
|
margin-bottom: 0.5em;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.refund {
|
|
||||||
padding: 0.5em 0.5em 0 0;
|
|
||||||
|
|
||||||
button {
|
button {
|
||||||
line-height: 1.4;
|
line-height: 1.6;
|
||||||
letter-spacing: 0.1em;
|
letter-spacing: 0.1em;
|
||||||
color: black;
|
|
||||||
background-color: @yellow;
|
|
||||||
}
|
|
||||||
|
|
||||||
.vbox-padding {
|
|
||||||
padding-left: 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -169,10 +169,10 @@ class Vbox extends preact.Component {
|
|||||||
function storeHdr() {
|
function storeHdr() {
|
||||||
return (
|
return (
|
||||||
<div class="store-hdr">
|
<div class="store-hdr">
|
||||||
<h3
|
<h2
|
||||||
onTouchStart={e => e.target.scrollIntoView(true)}
|
onTouchStart={e => e.target.scrollIntoView(true)}
|
||||||
onMouseOver={e => vboxHover(e, 'store')}> STORE
|
onMouseOver={e => vboxHover(e, 'store')}> STORE
|
||||||
</h3>
|
</h2>
|
||||||
<div class={`bits ${vbox.bits < 3 ? 'red' : false}`} onMouseOver={e => vboxHover(e, 'bits')}>
|
<div class={`bits ${vbox.bits < 3 ? 'red' : false}`} onMouseOver={e => vboxHover(e, 'bits')}>
|
||||||
<h1> {vbox.bits}b </h1>
|
<h1> {vbox.bits}b </h1>
|
||||||
</div>
|
</div>
|
||||||
@ -214,9 +214,9 @@ class Vbox extends preact.Component {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div class='stash-hdr'>
|
<div class='stash-hdr'>
|
||||||
<h3 onTouchStart={e => e.target.scrollIntoView(true)}
|
<h2 onTouchStart={e => e.target.scrollIntoView(true)}
|
||||||
onMouseOver={e => vboxHover(e, 'stash')}> STASH
|
onMouseOver={e => vboxHover(e, 'stash')}> STASH
|
||||||
</h3>
|
</h2>
|
||||||
{refundBtn}
|
{refundBtn}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@ -179,7 +179,8 @@ class InfoComponent extends preact.Component {
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (vboxInfo) return genItemInfo(vboxInfo);
|
const stateFullInfo = comboItem || vboxInfo;
|
||||||
|
if (stateFullInfo) return genItemInfo(stateFullInfo);
|
||||||
if (!info) return false;
|
if (!info) return false;
|
||||||
if (info.includes('constructName')) {
|
if (info.includes('constructName')) {
|
||||||
return (
|
return (
|
||||||
@ -204,9 +205,8 @@ class InfoComponent extends preact.Component {
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
const stateFullInfo = comboItem || info;
|
|
||||||
if (!stateFullInfo) return false;
|
return genItemInfo(info);
|
||||||
return genItemInfo(stateFullInfo);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const Combos = () => {
|
const Combos = () => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user