From 3820eaa774db4cb46e86e13910c4c630e119ee93 Mon Sep 17 00:00:00 2001 From: tim Date: Tue, 9 Sep 2025 00:23:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20changlog--=E7=A7=BB=E5=8A=A8=E7=AB=AF?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E6=8D=A2=E8=A1=8C=20#938?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend_nuxt/components/PostChangeLogItem.vue | 15 ++++++++------- frontend_nuxt/pages/posts/[id]/index.vue | 7 ++----- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/frontend_nuxt/components/PostChangeLogItem.vue b/frontend_nuxt/components/PostChangeLogItem.vue index bc56d5934..7e4996ec4 100644 --- a/frontend_nuxt/components/PostChangeLogItem.vue +++ b/frontend_nuxt/components/PostChangeLogItem.vue @@ -11,18 +11,18 @@ {{ log.username }} 变更了文章内容 变更了文章标题 - + + @@ -68,7 +68,6 @@ const props = defineProps({ }) const diffHtml = computed(() => { - const isMobile = useIsMobile() // Track theme changes const isDark = import.meta.client && document.documentElement.dataset.theme === 'dark' themeState.mode @@ -83,7 +82,6 @@ const diffHtml = computed(() => { showFiles: false, matching: 'lines', drawFileList: false, - outputFormat: isMobile.value ? 'line-by-line' : 'side-by-side', colorScheme, }) } else if (props.log.type === 'TITLE') { @@ -95,7 +93,6 @@ const diffHtml = computed(() => { showFiles: false, matching: 'lines', drawFileList: false, - outputFormat: isMobile.value ? 'line-by-line' : 'side-by-side', colorScheme, }) } @@ -110,9 +107,12 @@ const diffHtml = computed(() => { /* padding-top: 5px; */ /* padding-bottom: 30px; */ font-size: 14px; + border-bottom: 1px solid var(--normal-border-color); + padding-bottom: 10px; } .change-log-text { display: flex; + flex-wrap: wrap; align-items: center; } .change-log-user { @@ -146,5 +146,6 @@ const diffHtml = computed(() => { flex-direction: row; gap: 4px; align-items: center; + flex-wrap: wrap; } diff --git a/frontend_nuxt/pages/posts/[id]/index.vue b/frontend_nuxt/pages/posts/[id]/index.vue index ffadf0109..9c491d71c 100644 --- a/frontend_nuxt/pages/posts/[id]/index.vue +++ b/frontend_nuxt/pages/posts/[id]/index.vue @@ -1163,6 +1163,7 @@ onMounted(async () => { margin-top: 10px; gap: 10px; align-items: center; + flex-wrap: wrap; } .info-content-container { @@ -1218,7 +1219,7 @@ onMounted(async () => { } .post-time { - font-size: 14px; + font-size: 12px; opacity: 0.5; } @@ -1284,10 +1285,6 @@ onMounted(async () => { font-size: 12px; } - .post-time { - font-size: 12px; - } - .info-content-text { line-height: 1.5; }