Skip to content

Commit

Permalink
Adjust game card width for mobile devices
Browse files Browse the repository at this point in the history
  • Loading branch information
FinemechanicPub committed Aug 9, 2024
1 parent 75b9d66 commit e140759
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/GameCarousel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
padding: 20px 0; /* Added padding to prevent shadow cutoff */
}
.card {
flex: 0 0 300px;
flex: 0 0 270px;
height: 400px;
background-color: white;
border-radius: 10px;
Expand Down Expand Up @@ -96,7 +96,7 @@
</style>
<template>
<div class="carousel-container">
<div class="carousel" :style="{ transform: `translateX(${-currentIndex * 320}px)` }">
<div class="carousel" :style="{ transform: `translateX(${-currentIndex * 290}px)` }">
<div v-for="game in games" :key="game.id" class="card">
<h2>{{ game.title }}</h2>
<p></p>
Expand Down

0 comments on commit e140759

Please sign in to comment.