Move additionals platform

This commit is contained in:
Roman Cervantes 2019-09-19 09:49:08 -07:00
parent 4e815215f7
commit dec74005c8
2 changed files with 18 additions and 14 deletions

View file

@ -1,17 +1,5 @@
<template lang="html"> <template lang="html">
<div v-if="game" class="review-box"> <div v-if="game" class="review-box">
<section v-if="gamePlatforms && gamePlatforms.length > 0">
<h4>{{ $t('gameDetail.gamePlatforms') }}</h4>
<div class="platforms">
<platform
v-for="platform in gamePlatforms"
:key="platform.name"
:platform="platform"
/>
</div>
</section>
<div class="info"> <div class="info">
<!-- TODO: get icons for everything --> <!-- TODO: get icons for everything -->
<section v-if="playerPerspectives"> <section v-if="playerPerspectives">
@ -50,6 +38,18 @@
</section> </section>
<game-links /> <game-links />
<section v-if="gamePlatforms && gamePlatforms.length > 0">
<h4>{{ $t('gameDetail.gamePlatforms') }}</h4>
<div class="platforms">
<platform
v-for="platform in gamePlatforms"
:key="platform.name"
:platform="platform"
/>
</div>
</section>
</div> </div>
</div> </div>
</template> </template>
@ -121,7 +121,10 @@ export default {
flex-wrap: wrap; flex-wrap: wrap;
.platform { .platform {
width: 90px;
height: 50px;
margin-right: $gp / 2; margin-right: $gp / 2;
padding: $gp / 4;
&:first-child { &:first-child {
margin-left: 0; margin-left: 0;

View file

@ -1,7 +1,7 @@
<template lang="html"> <template lang="html">
<div <div
@click="changePlatform" @click="changePlatform"
:class="['platform', { dark: darkModeEnabled, clickable } ]" :class="['platform', { dark: darkModeEnabled, clickable, square } ]"
:style="style" :style="style"
> >
<img <img
@ -25,6 +25,7 @@ import { mapState, mapGetters } from 'vuex';
export default { export default {
props: { props: {
platform: Object, platform: Object,
square: Boolean,
clickable: Boolean, clickable: Boolean,
}, },
@ -90,7 +91,7 @@ export default {
justify-content: center; justify-content: center;
border-radius: $border-radius; border-radius: $border-radius;
overflow: hidden; overflow: hidden;
width: 200px; width: 180px;
height: 100px; height: 100px;
&.clickable { &.clickable {