From a9d8181940280817cb8afbf1999d9e275a13a9f0 Mon Sep 17 00:00:00 2001 From: tim Date: Fri, 19 Sep 2025 16:21:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20timeline=20ui=20=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend_nuxt/components/BaseTimeline.vue | 2 +- frontend_nuxt/components/TimelineTagItem.vue | 43 +++++++------------- frontend_nuxt/pages/users/[id].vue | 17 +++++--- 3 files changed, 26 insertions(+), 36 deletions(-) diff --git a/frontend_nuxt/components/BaseTimeline.vue b/frontend_nuxt/components/BaseTimeline.vue index f5d48e537..5888499db 100644 --- a/frontend_nuxt/components/BaseTimeline.vue +++ b/frontend_nuxt/components/BaseTimeline.vue @@ -95,7 +95,7 @@ export default { } .timeline-item:last-child::before { - display: none; + bottom: 0px; } .timeline-content { diff --git a/frontend_nuxt/components/TimelineTagItem.vue b/frontend_nuxt/components/TimelineTagItem.vue index 09406540e..61a79dcb8 100644 --- a/frontend_nuxt/components/TimelineTagItem.vue +++ b/frontend_nuxt/components/TimelineTagItem.vue @@ -1,26 +1,16 @@ @@ -30,15 +20,6 @@ import TimeManager from '~/utils/time' const props = defineProps({ item: { type: Object, required: true }, - mode: { - type: String, - default: 'timeline', - validator: (value) => ['timeline', 'summary'].includes(value), - }, - title: { - type: String, - default: '创建了标签', - }, }) const emit = defineEmits(['tag-click']) @@ -95,6 +76,10 @@ const handleTagClick = () => { font-weight: 600; } +.timeline-tag-count { + font-size: 12px; +} + .timeline-date { font-size: 12px; color: gray; diff --git a/frontend_nuxt/pages/users/[id].vue b/frontend_nuxt/pages/users/[id].vue index aef398201..28fd4e6ba 100644 --- a/frontend_nuxt/pages/users/[id].vue +++ b/frontend_nuxt/pages/users/[id].vue @@ -112,19 +112,18 @@ {{ item.comment.post.title }} {{ stripMarkdownLength(item.comment.content, 200) }} @@ -156,7 +155,7 @@
@@ -670,6 +669,11 @@ watch(selectedTab, async (val) => { color: #666; } +.reply-icon { + color: var(--primary-color); + margin-left: 5px; +} + .profile-page-header-user-info-buttons { display: flex; flex-direction: row; @@ -922,8 +926,8 @@ watch(selectedTab, async (val) => { .timeline-link { font-weight: bold; - color: var(--primary-color); text-decoration: none; + color: var(--text-color); word-break: break-word; } @@ -1014,6 +1018,7 @@ watch(selectedTab, async (val) => { color: var(--text-color); word-break: break-word; text-decoration: underline; + margin-left: 5px; } .timeline-comment-link:hover {