Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
style(consultation): flex dynamically
Browse files Browse the repository at this point in the history
  • Loading branch information
lemredd committed Dec 7, 2022
1 parent 857230e commit 7f34887
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions components/consultation/form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<p class="status-messages warning">
* Names are case-sensitive.
</p>
<div class="consultor">
<div class="consultor-fields" :class="consultorFieldsClasses">
<SearchableChip
v-model="selectedConsultors"
:current-user="userProfileData"
Expand Down Expand Up @@ -117,6 +117,12 @@
}
}
.consultor-fields .selectable {
@apply flex-col;
select { @apply m-0; }
}
.selectable {
@apply flex md:items-center;
Expand Down Expand Up @@ -167,9 +173,19 @@
}
}
.consultor-fields {
@apply mb-4;
@apply flex flex-col;
&.has-selected-consultor {
@screen md {
@apply flex-row;
}
}
}
.schedule-selector {
@apply mt-5;
}
</style>

Expand Down Expand Up @@ -241,6 +257,9 @@ const consultorRoles = computed(() => {
return makeOptionInfo(roleIDs, labels) as OptionInfo[]
})
const addressConsultorAs = ref("")
const consultorFieldsClasses = computed(() => ({
"has-selected-consultor": selectedConsultors.value.length
}))
const MAX_CONSULTERS = 5
const selectedConsulters = ref<DeserializedUserResource<"studentDetail">[]>([
Expand Down

0 comments on commit 7f34887

Please sign in to comment.