|
@@ -15,8 +15,8 @@
|
|
|
<el-avatar
|
|
|
v-for="item in student_list"
|
|
|
:key="item.student_id"
|
|
|
- size="small"
|
|
|
:class="{ active: curStudent === item.student_id }"
|
|
|
+ icon="el-icon-user"
|
|
|
:src="item.student_image_url"
|
|
|
/>
|
|
|
</div>
|
|
@@ -208,10 +208,10 @@ export default {
|
|
|
|
|
|
listMove(direction) {
|
|
|
let w = this.$refs.list.clientWidth - this.$refs.avatar.clientWidth;
|
|
|
- if (w > 40) {
|
|
|
+ if (w > 60) {
|
|
|
let left = Number(this.$refs.list.style['margin-left'].slice(0, -2));
|
|
|
- let width = direction === 'right' ? left - 40 : left + 40;
|
|
|
- if (Math.abs(width) > w + 10) width = w;
|
|
|
+ let width = direction === 'right' ? left - 60 : left + 60;
|
|
|
+ if (Math.abs(width) > w) width = -w;
|
|
|
this.marginLeft = width > 0 ? 0 : width;
|
|
|
}
|
|
|
}
|
|
@@ -236,7 +236,7 @@ export default {
|
|
|
.student-list {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
- height: 32px;
|
|
|
+ height: 44px;
|
|
|
align-items: center;
|
|
|
margin-bottom: 24px;
|
|
|
overflow: hidden;
|
|
@@ -251,7 +251,7 @@ export default {
|
|
|
|
|
|
.el-avatar {
|
|
|
cursor: pointer;
|
|
|
- margin: 0 8px;
|
|
|
+ margin: 0 9px;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -265,7 +265,7 @@ export default {
|
|
|
|
|
|
&-container {
|
|
|
overflow: auto;
|
|
|
- height: calc(55vh - 105px);
|
|
|
+ height: calc(55vh - 117px);
|
|
|
|
|
|
.el-image {
|
|
|
width: 100%;
|