Skip to content

Commit ad07eec

Browse files
improve btns
1 parent 59f6ae5 commit ad07eec

File tree

3 files changed

+25
-28
lines changed

3 files changed

+25
-28
lines changed

src/views/classroom/ClassroomList.vue

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,17 @@
55
<h1>Classrooms</h1>
66
<v-divider></v-divider>
77

8-
<span
8+
<v-btn
99
v-if="isTeacher"
10-
class="cursor-pointer d-inline-flex mt-5"
10+
class="mt-5"
11+
depressed
1112
@click="$router.push({ name: 'ClassroomCreate' })"
1213
>
13-
<v-icon>
14+
<v-icon left>
1415
mdi-plus-circle-outline
1516
</v-icon>
16-
<span
17-
v-text="'New classroom'"
18-
class="ml-3"
19-
></span>
20-
</span>
17+
New classroom
18+
</v-btn>
2119

2220
<v-progress-circular
2321
v-if="loading"

src/views/classroom/ClassroomStudents.vue

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
<template>
22
<div>
3-
<span
4-
class="cursor-pointer d-inline-flex"
3+
<v-btn
4+
depressed
55
@click="showAddStudent = !showAddStudent"
66
>
7-
<v-icon>
8-
mdi-plus-circle-outline
7+
<v-icon left>
8+
{{ showAddStudent ? 'mdi-minus-circle-outline' : 'mdi-plus-circle-outline' }}
99
</v-icon>
10-
<span
11-
v-text="'Add student'"
12-
class="ml-3"
13-
></span>
14-
</span>
10+
Add student
11+
</v-btn>
1512

16-
<div v-show="showAddStudent">
13+
<div
14+
v-if="showAddStudent"
15+
class="mt-3"
16+
>
1717
<v-card width="50%">
1818
<v-card-subtitle>
19-
An email containing temporary password will be sent to your student after creating.
19+
An email containing temporary password will be sent to your student after adding.
2020
Tell them to login with that password.
2121
</v-card-subtitle>
2222
<v-card-text>
@@ -51,8 +51,9 @@
5151
color="primary"
5252
:loading="loadingAddStudent"
5353
@click="addStudent"
54+
min-width="110"
5455
>
55-
Add student
56+
Add
5657
</v-btn>
5758
</v-card-actions>
5859
</v-card>

src/views/reading-exercise/ReadingExerciseList.vue

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,16 @@
55
<h1>Manage reading exercises</h1>
66
<v-divider></v-divider>
77

8-
<span
9-
class="cursor-pointer d-inline-flex mt-5"
8+
<v-btn
9+
class="mt-5"
10+
depressed
1011
@click="goToNewExercise"
1112
>
12-
<v-icon>
13+
<v-icon left>
1314
mdi-plus-circle-outline
1415
</v-icon>
15-
<span
16-
v-text="'Add exercise'"
17-
class="ml-3"
18-
></span>
19-
</span>
16+
New exercise
17+
</v-btn>
2018
<br>
2119

2220
<v-progress-circular

0 commit comments

Comments
 (0)