Skip to content

Commit 4befc85

Browse files
committed
chore: ui fix
1 parent 5137709 commit 4befc85

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

src/components/courses/CourseCommentCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
{{
3434
localComment.user
3535
? gradeItems[localComment.user.grade]
36-
: '由匿名用户发送,请仔细分辨其真实性'
36+
: '匿名发送,请仔细分辨其真实性'
3737
}}
3838
</div>
3939
</div>

src/components/users/comment/CommentCardBar.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<v-card flat>
33
<v-card-text class="px-sm-4 px-2 pt-sm-4 pt-3 pb-sm-3 pb-0">
4-
<div class="d-flex justify-space-between">
4+
<div class="d-flex justify-space-between flex-wrap" style="gap: 1rem">
55
<slot name="headerAvatar" :localComment="comment">
66
<div
77
class="d-flex justify-space-between router-container"
@@ -32,21 +32,21 @@
3232
</div>
3333
</slot>
3434
<slot name="headerNote" :localComment="comment">
35-
<div class="d-flex justify-end">
35+
<div class="d-flex justify-end flex-grow-1">
3636
<div class="d-flex flex-column">
37-
<div class="mt-n1">
37+
<div class="mt-n1 d-flex align-center" style="gap: 0.3rem">
3838
<v-icon size="16">
3939
{{ statics.icons.mdiUpdate }}
4040
</v-icon>
41-
<span class="text-caption">
41+
<span class="text-caption" style="min-width: fit-content; display: inline-block">
4242
{{ unixToReadable(comment.update_time) }}
4343
</span>
4444
</div>
45-
<div>
45+
<div class="d-flex align-center" style="gap: 0.3rem">
4646
<v-icon size="16">
4747
{{ statics.icons.mdiCommentEditOutline }}
4848
</v-icon>
49-
<span class="text-caption">
49+
<span class="text-caption" style="min-width: fit-content; display: inline-block">
5050
{{ unixToReadable(comment.post_time) }}
5151
</span>
5252
</div>

src/styles/markdown.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ h4,
55
h5,
66
h6 {
77
padding-bottom: 16px;
8+
line-height: 1.25;
89
}
910

1011
.markdown-body a :hover {

0 commit comments

Comments
 (0)