Skip to content

Commit

Permalink
use vuetify grids
Browse files Browse the repository at this point in the history
  • Loading branch information
odalys-dataport committed Sep 17, 2024
1 parent 4231f1d commit 83e5c13
Showing 1 changed file with 5 additions and 39 deletions.
44 changes: 5 additions & 39 deletions src/modules/feature/room/RoomGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,11 @@
/>
</template>
<template v-else>
<div class="room-tile-grid">
<RoomTile
v-for="room in rooms"
:key="room.id"
:room="room"
class="room-tile"
/>
</div>
<v-row>
<v-col v-for="room in rooms" :key="room.id" cols="6" md="4" lg="3">
<RoomTile :room="room" class="px-5 mb-5" />
</v-col>
</v-row>
</template>
</template>

Expand All @@ -42,34 +39,3 @@ onMounted(() => {
fetchRooms();
});
</script>

<style lang="scss">
@import "@/styles/settings.scss";
.room-tile-grid {
margin-left: -20px;
margin-right: -20px;
@media #{map-get($display-breakpoints, "sm-and-up")} {
display: flex;
flex-wrap: wrap;
}
}
.room-tile {
padding-left: 20px;
padding-right: 20px;
margin-bottom: 20px;
@media #{map-get($display-breakpoints, "sm-and-up")} {
flex: 0 0 50%;
}
@media #{map-get($display-breakpoints, "md-and-up")} {
flex: 0 0 33.3333%;
}
@media #{map-get($display-breakpoints, "lg-and-up")} {
flex: 0 0 25%;
}
}
</style>

0 comments on commit 83e5c13

Please sign in to comment.