Skip to content

Commit

Permalink
try to improve drag in mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadiducho committed Oct 24, 2024
1 parent 14b6ba7 commit 3e2fba7
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions src/components/admin/gps/DriversInGrandPrix.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<draggable
id="driversInSeason"
class="w-full h-full select-none space-y-2 flex flex-col text-white"
class="w-full h-full select-none space-y-2 flex flex-col text-white px-2 md:px-0"
:list="driversInSeason"
group="drivers"
itemKey="id"
Expand Down Expand Up @@ -42,7 +42,7 @@
<div class="card-content">
<draggable
:id="`driversByConstructor-${constructor.id}`"
class="w-full h-full select-none space-y-2"
class="w-full h-full select-none space-y-2 px-2 md:px-0"
:list="driversByConstructor[constructor.id]"
group="drivers"
itemKey="id"
Expand Down Expand Up @@ -169,4 +169,4 @@ export default defineComponent({

<style scoped>
</style>
</style>
4 changes: 2 additions & 2 deletions src/components/admin/gps/EditGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<draggable
:id="`grid-${session.id}`"
class="w-full select-none space-y-2"
class="w-full select-none space-y-3 px-2 md:px-0"
:list="sessionGrid"
group="grid"
itemKey="id"
Expand Down Expand Up @@ -94,4 +94,4 @@ export default defineComponent({

<style scoped>
</style>
</style>
4 changes: 2 additions & 2 deletions src/components/admin/gps/EditResults.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<PrognoAlert v-if="!hasSavedResults" variant="warning" message="No hay resultados guardada aún" />
<draggable
:id="`results-${session.id}`"
class="w-full select-none space-y-2"
class="w-full select-none space-y-3 px-2 md:px-0"
:list="sessionResults"
group="results"
itemKey="id"
Expand Down Expand Up @@ -118,4 +118,4 @@ export default defineComponent({

<style scoped>
</style>
</style>
2 changes: 1 addition & 1 deletion src/components/gps/DraggableDriverCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ export default defineComponent({
margin-left: 0.0rem;
}
}
</style>
</style>
8 changes: 4 additions & 4 deletions src/components/gps/SelectTipps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

<draggable
:id="`pronosticados-${session.id}`"
class="w-full h-full select-none space-y-2"
class="w-full h-full select-none space-y-2 px-2 md:px-0"
:list="pilotosDisponiblesFiltrados"
group="people"
itemKey="name"
Expand All @@ -75,7 +75,7 @@
<h3 class="select-none dark:text-gray-300">Tu pronóstico</h3>
<draggable
:id="`pronosticados-${session.id}`"
class="w-full h-full select-none space-y-2"
class="w-full h-full select-none space-y-2 px-2 md:px-0"
:list="pilotosPronosticados"
group="people"
itemKey="name"
Expand Down Expand Up @@ -215,7 +215,7 @@ export default defineComponent({
this.pilotosPronosticados.push(value.driver);
}
}
});
});
},
methods: {
reiniciarPronostico() {
Expand Down Expand Up @@ -282,4 +282,4 @@ export default defineComponent({
}
}
});
</script>
</script>
4 changes: 2 additions & 2 deletions src/pages/admin/seasons/EditSeason.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
>
Constructores en la temporada {{ season.name }}
</p-button>
<p-button
<!--<p-button
color="info"
icon="fa fa-user-group"
size="large"
Expand All @@ -58,7 +58,7 @@
class="mr-2"
>
Pilotos en la temporada {{ season.name }}
</p-button>
</p-button>-->
</section>
<section class="w-full xl:w-1/3 px-2">
<p-input label="Nombre de la temporada" name="name" v-model="season.name" />
Expand Down

0 comments on commit 3e2fba7

Please sign in to comment.