File tree Expand file tree Collapse file tree 2 files changed +31
-6
lines changed Expand file tree Collapse file tree 2 files changed +31
-6
lines changed Original file line number Diff line number Diff line change 30
30
<div class =" metadata" >
31
31
<strong class =" date" >{{ reply.createTime | dateFormat('YYYY-MM-DD HH:mm') }}</strong >
32
32
</div >
33
- <div class =" text" ><a :href =" `#comment-${reply.parentCommentId}`" >@{{ reply.parentCommentNickname }}</a ><div v-html =" reply.content" ></div ></div >
33
+ <div class =" text" >
34
+ <a :href =" `#comment-${reply.parentCommentId}`" >@{{ reply.parentCommentNickname }}</a >
35
+ <div v-html =" reply.content" ></div >
36
+ </div >
34
37
<div class =" actions" >
35
38
<el-button size =" mini" type =" primary" @click =" setReply(reply.id)" >回复</el-button >
36
39
</div >
37
40
</div >
38
41
<CommentForm v-if =" parentCommentId===reply.id" />
39
42
</div >
40
43
</div >
44
+ <div class =" border" ></div >
41
45
<CommentForm v-if =" parentCommentId===comment.id" />
42
46
</div >
43
47
</div >
63
67
</script >
64
68
65
69
<style scoped>
70
+ .comments + .border {
71
+ position : absolute ;
72
+ left : 34px ;
73
+ top : 47px ;
74
+ bottom : 0 ;
75
+ border-style : solid ;
76
+ border-width : 0 0 0 1px ;
77
+ border-color : #e0e0e0 ;
78
+ }
79
+ .ui.threaded.comments .comment .comments {
80
+ box-shadow : none ;
81
+ margin-top : -2em ;
82
+ }
83
+
66
84
.comment {
67
85
padding-right : 2em !important ;
68
86
padding-left : 1em !important ;
78
96
padding : 4px 5px ;
79
97
}
80
98
81
- .anchor {
82
- display : block ;
83
- height : 55px ;
84
- margin-top : -55px ;
85
- visibility : hidden ;
99
+ .comment > .anchor {
100
+ position : absolute ;
101
+ left : 0 ;
102
+ top : -48px ;
103
+ }
104
+ .comment .comments .comment > .anchor {
105
+ top : -55px ;
86
106
}
87
107
88
108
.ui.comments .comment .avatar {
Original file line number Diff line number Diff line change 170
170
</script >
171
171
172
172
<style >
173
+ .form {
174
+ background : #fff ;
175
+ position : relative ;
176
+ }
177
+
173
178
.form h3 {
174
179
margin : 5px ;
175
180
font-weight : 500 !important ;
You can’t perform that action at this time.
0 commit comments