diff --git a/src/components/Comment.vue b/src/components/Comment.vue index b51f345d..636b8813 100644 --- a/src/components/Comment.vue +++ b/src/components/Comment.vue @@ -477,5 +477,13 @@ export default defineComponent({ .wl-card .wl-quote { border-inline-start: none; } + + .wl-header-item { + @apply items-center; + } + + .wl-header input { + @apply p-2 m-2; + } } diff --git a/src/components/Sidebar/src/RecentComment.vue b/src/components/Sidebar/src/RecentComment.vue index 5d77e297..aeecce6c 100644 --- a/src/components/Sidebar/src/RecentComment.vue +++ b/src/components/Sidebar/src/RecentComment.vue @@ -1,10 +1,11 @@ - + - + @@ -35,6 +36,19 @@ + + + + {{ t('settings.empty-recent-comments') }} + diff --git a/src/locales/languages/cn.json b/src/locales/languages/cn.json index f61c69fe..c00bedde 100644 --- a/src/locales/languages/cn.json +++ b/src/locales/languages/cn.json @@ -68,6 +68,7 @@ "default-category": "文章", "default-tag": "未分类", "empty-tag": "目前没有标签", + "empty-recent-comments": "目前没有最新评论", "pinned": "置顶", "featured": "推荐" } diff --git a/src/locales/languages/en.json b/src/locales/languages/en.json index 9961b023..e3423b9a 100644 --- a/src/locales/languages/en.json +++ b/src/locales/languages/en.json @@ -67,7 +67,8 @@ "tips-open-search": "Open search", "default-category": "Article", "default-tag": "unsorted", - "empty-tag": "Current no tags were found.", + "empty-tag": "No tags right now.", + "empty-recent-comments": "No recent comments right now.", "pinned": "Pinned", "featured": "Featured" } diff --git a/src/views/Home.vue b/src/views/Home.vue index e2e14f9b..8e994fd1 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -78,7 +78,7 @@ - + @@ -226,18 +226,6 @@ export default defineComponent({ } return categoryStore.categories }), - recentCommentEnable: computed(() => { - return ( - (!!appStore.themeConfig.plugins.gitalk.enable && - !!appStore.themeConfig.plugins.gitalk.recentComment) || - (!!appStore.themeConfig.plugins.valine.enable && - !!appStore.themeConfig.plugins.valine.recentComment) || - (!!appStore.themeConfig.plugins.twikoo.enable && - !!appStore.themeConfig.plugins.twikoo.recentComment) || - (!!appStore.themeConfig.plugins.waline.enable && - !!appStore.themeConfig.plugins.waline.recentComment) - ) - }), expanderClass, tabClass, expandHandler,