Client - style update

This commit is contained in:
Sam 2021-09-24 14:10:20 +02:00
parent 34c51c6ef0
commit 66f2f3a4df
3 changed files with 46 additions and 25 deletions

View File

@ -104,8 +104,17 @@
<style lang="scss" scoped> <style lang="scss" scoped>
@import '~@/scss/base'; @import '~@/scss/base';
#workout-map {
.leaflet-container { .leaflet-container {
height: 400px; height: 400px;
width: 600px; width: 600px;
} }
@media screen and (max-width: $small-limit) {
.leaflet-container {
width: 100%;
height: 300px;
}
}
}
</style> </style>

View File

@ -81,7 +81,9 @@
<style lang="scss" scoped> <style lang="scss" scoped>
@import '~@/scss/base'; @import '~@/scss/base';
.workout-detail { .workout-detail {
display: flex;
::v-deep(.card) { ::v-deep(.card) {
width: 100%;
.card-title { .card-title {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;

View File

@ -1,11 +1,12 @@
<template> <template>
<div id="workout"> <div id="workout">
<div class="container">
<div class="workout-loading" v-if="workout.loading"> <div class="workout-loading" v-if="workout.loading">
<div class="loading"> <div class="loading">
<Loader /> <Loader />
</div> </div>
</div> </div>
<div v-else class="container"> <div v-else class="workout-container">
<div v-if="workout.workout.id"> <div v-if="workout.workout.id">
<WorkoutDetail <WorkoutDetail
v-if="sports.length > 0" v-if="sports.length > 0"
@ -14,11 +15,12 @@
:authUser="authUser" :authUser="authUser"
/> />
</div> </div>
<div class="container" v-else> <div v-else>
<NotFound target="WORKOUT" /> <NotFound target="WORKOUT" />
</div> </div>
</div> </div>
</div> </div>
</div>
</template> </template>
<script lang="ts"> <script lang="ts">
@ -66,9 +68,16 @@
<style lang="scss" scoped> <style lang="scss" scoped>
@import '~@/scss/base'; @import '~@/scss/base';
#workout { #workout {
display: flex;
.container {
width: 100%;
padding: 0;
.workout-container {
width: 100%;
}
.workout-loading { .workout-loading {
height: $app-height; height: $app-height;
width: 100%;
.loading { .loading {
display: flex; display: flex;
align-items: center; align-items: center;
@ -76,4 +85,5 @@
} }
} }
} }
}
</style> </style>