This commit is contained in:
yvan 2026-08-15 23:15:25 +08:00
parent 2a3c55bb53
commit e5b88fcf6c
1 changed files with 7 additions and 4 deletions

View File

@ -8,7 +8,7 @@
<!-- 左侧内容区 --> <!-- 左侧内容区 -->
<div class="relative z-10 h-full w-full md:w-1/2"> <div class="relative z-10 h-full w-full md:w-1/2">
<div class="flex h-full min-h-0 items-center justify-center p-6 md:p-8"> <div class="flex h-full min-h-0 items-center justify-center p-6 md:p-8">
<div class="flex max-h-full min-h-0 w-4/5 flex-col overflow-hidden md:w-96"> <div class="flex h-full max-h-full min-h-0 w-4/5 flex-col overflow-hidden md:w-96">
<!-- 顶部 logo + 大写字标无副标题 --> <!-- 顶部 logo + 大写字标无副标题 -->
<EntryBrand class="mb-6 shrink-0 md:mb-9" /> <EntryBrand class="mb-6 shrink-0 md:mb-9" />
<div v-if="!page.showForm" class="anim-fade-up flex min-h-0 flex-1 flex-col overflow-hidden"> <div v-if="!page.showForm" class="anim-fade-up flex min-h-0 flex-1 flex-col overflow-hidden">
@ -21,7 +21,7 @@
tabindex="0" tabindex="0"
@scroll="updateNoticeReadState" @scroll="updateNoticeReadState"
> >
<div ref="noticeContentRef"> <div ref="noticeContentRef" style="min-height: 900px">
<div class="space-y-5"> <div class="space-y-5">
<div class="notice-group"> <div class="notice-group">
<h4 class="mb-2 flex items-center gap-1.5 text-sm font-semibold text-[#2264f2]"> <h4 class="mb-2 flex items-center gap-1.5 text-sm font-semibold text-[#2264f2]">
@ -172,11 +172,14 @@ const noticeHint = computed(() => getScrollGateHint(canConfirmNotice.value))
let noticeResizeObserver let noticeResizeObserver
const updateNoticeReadState = () => { const updateNoticeReadState = () => {
if (!noticeScrollRef.value) { const scroll = noticeScrollRef.value
const content = noticeContentRef.value
if (!scroll || !content || scroll.clientHeight <= 0) {
canConfirmNotice.value = false canConfirmNotice.value = false
return return
} }
canConfirmNotice.value = isScrollAtBottom(noticeScrollRef.value) const contentFits = content.scrollHeight <= scroll.clientHeight + 1
canConfirmNotice.value = contentFits || isScrollAtBottom(scroll)
} }
const disconnectNoticeObserver = () => { const disconnectNoticeObserver = () => {