This commit is contained in:
parent
2a3c55bb53
commit
e5b88fcf6c
|
|
@ -8,7 +8,7 @@
|
|||
<!-- 左侧内容区 -->
|
||||
<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 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 + 大写字标(无副标题) -->
|
||||
<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">
|
||||
|
|
@ -21,7 +21,7 @@
|
|||
tabindex="0"
|
||||
@scroll="updateNoticeReadState"
|
||||
>
|
||||
<div ref="noticeContentRef">
|
||||
<div ref="noticeContentRef" style="min-height: 900px">
|
||||
<div class="space-y-5">
|
||||
<div class="notice-group">
|
||||
<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
|
||||
|
||||
const updateNoticeReadState = () => {
|
||||
if (!noticeScrollRef.value) {
|
||||
const scroll = noticeScrollRef.value
|
||||
const content = noticeContentRef.value
|
||||
if (!scroll || !content || scroll.clientHeight <= 0) {
|
||||
canConfirmNotice.value = false
|
||||
return
|
||||
}
|
||||
canConfirmNotice.value = isScrollAtBottom(noticeScrollRef.value)
|
||||
const contentFits = content.scrollHeight <= scroll.clientHeight + 1
|
||||
canConfirmNotice.value = contentFits || isScrollAtBottom(scroll)
|
||||
}
|
||||
|
||||
const disconnectNoticeObserver = () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue