diff --git a/open-isle-cli/src/components/BaseTimeline.vue b/open-isle-cli/src/components/BaseTimeline.vue
index 8425a7c80..6b5080c07 100644
--- a/open-isle-cli/src/components/BaseTimeline.vue
+++ b/open-isle-cli/src/components/BaseTimeline.vue
@@ -25,6 +25,7 @@ export default {
.timeline {
display: flex;
flex-direction: column;
+ height: 100%;
}
.timeline-item {
diff --git a/open-isle-cli/src/components/CommentItem.vue b/open-isle-cli/src/components/CommentItem.vue
index c7f273dfe..37eb0f54d 100644
--- a/open-isle-cli/src/components/CommentItem.vue
+++ b/open-isle-cli/src/components/CommentItem.vue
@@ -6,11 +6,11 @@
...(level > 0 ? { /*borderLeft: '1px solid #e0e0e0', */borderBottom: 'none' } : {})
}"
>
-
@@ -61,6 +71,7 @@
import { ref, watch } from 'vue'
import CommentEditor from './CommentEditor.vue'
import { renderMarkdown } from '../utils/markdown'
+import BaseTimeline from './BaseTimeline.vue'
import { API_BASE_URL, toast } from '../main'
import { getToken } from '../utils/auth'
const CommentItem = {
@@ -150,7 +161,7 @@ const CommentItem = {
return { showReplies, toggleReplies, showEditor, toggleEditor, submitReply, copyCommentLink, renderMarkdown, isWaitingForReply }
}
}
-CommentItem.components = { CommentItem, CommentEditor }
+CommentItem.components = { CommentItem, CommentEditor, BaseTimeline }
export default CommentItem
diff --git a/open-isle-cli/src/views/PostPageView.vue b/open-isle-cli/src/views/PostPageView.vue
index 4617a3e06..5b0863415 100644
--- a/open-isle-cli/src/views/PostPageView.vue
+++ b/open-isle-cli/src/views/PostPageView.vue
@@ -68,14 +68,24 @@
@@ -100,6 +110,7 @@ import { ref, computed, onMounted, nextTick } from 'vue'
import { useRoute } from 'vue-router'
import CommentItem from '../components/CommentItem.vue'
import CommentEditor from '../components/CommentEditor.vue'
+import BaseTimeline from '../components/BaseTimeline.vue'
import { renderMarkdown } from '../utils/markdown'
import { API_BASE_URL, toast } from '../main'
import { getToken } from '../utils/auth'
@@ -108,7 +119,7 @@ hatch.register()
export default {
name: 'PostPageView',
- components: { CommentItem, CommentEditor },
+ components: { CommentItem, CommentEditor, BaseTimeline },
setup() {
const route = useRoute()
const postId = route.params.id
@@ -133,7 +144,8 @@ export default {
avatar: c.author.avatar,
text: c.content,
reply: (c.replies || []).map(mapComment),
- openReplies: false
+ openReplies: false,
+ src: c.author.avatar,
})
const findCommentPath = (id, list) => {