diff --git a/client/assets/styles/instance.less b/client/assets/styles/instance.less index 23b17a8c..45538886 100644 --- a/client/assets/styles/instance.less +++ b/client/assets/styles/instance.less @@ -2,7 +2,7 @@ overflow: hidden; display: grid; grid-template-columns: 1fr minmax(min-content, 1fr); - grid-template-rows: minmax(min-content, 0.75fr) 1fr; + grid-template-rows: min-content 1fr; grid-template-areas: "vbox info" @@ -37,7 +37,7 @@ grid-area: info; display: grid; - grid-template-rows: 1fr 1fr; + grid-template-rows: 12em min-content; grid-template-areas: "item" "combos"; @@ -50,16 +50,20 @@ .combos { display: grid; grid-template-columns: repeat(6, 1fr); + align-content: center; .table-button { display: grid; text-align: center; + align-content: center; + border-bottom: 2px solid #222; grid-template-areas: "item" "ingr"; .item { + border-top: 2px solid #222; border-bottom: 2px solid #222; flex: 1; grid-area: item; @@ -68,15 +72,14 @@ div { border-right: 2px solid #222; - svg { vertical-align: middle; } } - &:last-child { + &:first-child { div { - border-right: 0; + border-left: 2px solid #222; } } } @@ -101,29 +104,6 @@ } } -.instance .combos { - margin: 0 0 1em 1em; - - table { - tr { - svg { - height: 1em; - } - } - } - - td.table-button { - padding:5px; - cursor: pointer; - animation: border-co 0.75s ease-in-out 0s infinite alternate; - &:hover { - color: whitesmoke; - background-color: @gray-hover; - } - - } -} - .instance .info figcaption { font-size: 1em; display: inline-block; diff --git a/client/src/components/info.component.jsx b/client/src/components/info.component.jsx index c0526730..71360599 100644 --- a/client/src/components/info.component.jsx +++ b/client/src/components/info.component.jsx @@ -147,19 +147,27 @@ class InfoComponent extends preact.Component { const vboxCombos = itemInfo.combos.filter(c => c.components.includes(info)); if (vboxCombos.length > 6 || vboxCombos.length === 0) return generalNotes; + const comboTable = vboxCombos.map((c, i) => { + const mouseOver = e => { + e.stopPropagation(); + this.setState({ comboItem: c.item }); + }; + const componentTable = (c.components.some(ci => ['Red', 'Blue', 'Green'].includes(ci))) + ? [