Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
masinnae committed May 21, 2024
1 parent ace27f3 commit 7f10c7b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@
:key="instructor!.uid"
variant="outlined"
:color="instructor!.is_teacher ? `primary` : `green`"
:class="instructor!.is_teacher ? `ma-1 instr-chip-instructor` : `ma-1 instr-chip-assistent`"
:class="
instructor!.is_teacher
? `ma-1 instr-chip-instructor`
: `ma-1 instr-chip-assistent`
"
exact
>
<v-icon
Expand Down Expand Up @@ -52,14 +56,14 @@ import type User from "@/models/User";
import useIsAdmin from "@/composables/useIsAdmin";
import useIsTeacher from "@/composables/useIsTeacher";
import SubjectIcon from "@/components/subject/extra/SubjectIcon.vue";
import {SubjectRole} from "@/models/Subject";
import { SubjectRole } from "@/models/Subject";
defineProps<{
title: string;
academicYear: number;
instructors: User[];
isInstructor: boolean;
role: SubjectRole
role: SubjectRole;
}>();
const { isAdmin } = useIsAdmin();
Expand Down Expand Up @@ -101,14 +105,14 @@ const { isTeacher } = useIsTeacher();
}
.instr-chip-instructor {
background-color: #DFE5F7;
background-color: #dfe5f7;
}
.instr-chip-assistent {
background-color: #d0efd1;
}
.academyyear{
.academyyear {
border-radius: 50px;
border: 1px solid rgb(var(--v-theme-text));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ const userRole = computed(() => {
</script>

<style scoped>
.header {
display: flex;
}
</style>

0 comments on commit 7f10c7b

Please sign in to comment.