mirror of
https://github.com/romancm/gamebrary
synced 2024-11-15 07:57:19 +00:00
add grid prop to amazon component
This commit is contained in:
parent
0e9649b6e2
commit
1a4d0ed094
1 changed files with 8 additions and 5 deletions
|
@ -2,7 +2,7 @@
|
|||
<div v-if="game.websites" class="my-4">
|
||||
External links:
|
||||
|
||||
<div class="links">
|
||||
<div :class="['links', { grid }]">
|
||||
<b-button
|
||||
v-for="{ url, id, icon, svg } in links"
|
||||
:href="url"
|
||||
|
@ -38,6 +38,7 @@ import { LINKS_CATEGORIES } from '@/constants';
|
|||
export default {
|
||||
props: {
|
||||
game: Object,
|
||||
grid: Boolean,
|
||||
},
|
||||
|
||||
computed: {
|
||||
|
@ -58,11 +59,13 @@ export default {
|
|||
<style lang="scss" rel="stylesheet/scss" scoped>
|
||||
.links {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
grid-gap: .5rem;
|
||||
// grid-template-columns: 1fr 1fr 1fr;
|
||||
grid-gap: 5px;
|
||||
|
||||
@media(max-width: 780px) {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
&.grid {
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
}
|
||||
// @media(max-width: 780px) {
|
||||
// }
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Reference in a new issue