Fix spacing on WeaponGrid
This commit is contained in:
parent
bd7683513b
commit
45645aa352
2 changed files with 28 additions and 27 deletions
|
|
@ -13,10 +13,7 @@
|
|||
gap: $unit-3x;
|
||||
grid-template-columns: 1.278fr 3fr;
|
||||
justify-items: center;
|
||||
grid-template-areas:
|
||||
'mainhand grid'
|
||||
'mainhand grid'
|
||||
'mainhand grid';
|
||||
grid-template-areas: 'mainhand grid';
|
||||
max-width: $grid-width;
|
||||
|
||||
@include breakpoint(tablet) {
|
||||
|
|
|
|||
|
|
@ -375,28 +375,32 @@ const WeaponGrid = (props: Props) => {
|
|||
)
|
||||
})
|
||||
|
||||
const extraElement = (
|
||||
<ExtraContainer>
|
||||
{appState.party.raid && appState.party.raid.group.extra && (
|
||||
<ExtraWeaponsGrid
|
||||
grid={appState.grid.weapons.allWeapons}
|
||||
editable={props.editable}
|
||||
offset={numWeapons}
|
||||
removeWeapon={removeWeapon}
|
||||
updateObject={receiveWeaponFromSearch}
|
||||
updateUncap={initiateUncapUpdate}
|
||||
/>
|
||||
)}
|
||||
{appState.party.raid && appState.party.raid.group.guidebooks && (
|
||||
<GuidebooksGrid
|
||||
grid={appState.party.guidebooks}
|
||||
editable={props.editable}
|
||||
removeGuidebook={removeGuidebook}
|
||||
updateObject={receiveGuidebookFromSearch}
|
||||
/>
|
||||
)}
|
||||
</ExtraContainer>
|
||||
)
|
||||
const extraElement = () => {
|
||||
if (appState.party.raid && appState.party.raid.group.extra) {
|
||||
return (
|
||||
<ExtraContainer>
|
||||
{appState.party.raid && appState.party.raid.group.extra && (
|
||||
<ExtraWeaponsGrid
|
||||
grid={appState.grid.weapons.allWeapons}
|
||||
editable={props.editable}
|
||||
offset={numWeapons}
|
||||
removeWeapon={removeWeapon}
|
||||
updateObject={receiveWeaponFromSearch}
|
||||
updateUncap={initiateUncapUpdate}
|
||||
/>
|
||||
)}
|
||||
{appState.party.raid && appState.party.raid.group.guidebooks && (
|
||||
<GuidebooksGrid
|
||||
grid={appState.party.guidebooks}
|
||||
editable={props.editable}
|
||||
removeGuidebook={removeGuidebook}
|
||||
updateObject={receiveGuidebookFromSearch}
|
||||
/>
|
||||
)}
|
||||
</ExtraContainer>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
const conflictModal = () => {
|
||||
return incoming && conflicts ? (
|
||||
|
|
@ -448,7 +452,7 @@ const WeaponGrid = (props: Props) => {
|
|||
<ul id="Weapons">{weaponGridElement}</ul>
|
||||
</div>
|
||||
|
||||
{displayExtraContainer ? extraElement : ''}
|
||||
{displayExtraContainer ? extraElement() : ''}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue