From ef4b9d49359881c11108e187c1c6812cadab5c35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=9D=B0?= Date: Tue, 9 Dec 2025 17:10:03 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Comments/index.module.scss | 8 ++++++++ src/components/Comments/index.tsx | 1 + .../components/GameInfo/index.module.scss | 18 ++++++++++++++++++ .../components/OrganizerInfo/index.module.scss | 6 ++++++ .../detail/components/OrganizerInfo/index.tsx | 7 ++++++- .../components/Participants/index.module.scss | 6 ++++++ .../detail/components/Participants/index.tsx | 1 + .../detail/components/SharePopup/index.tsx | 11 ++++++----- 8 files changed, 52 insertions(+), 6 deletions(-) diff --git a/src/components/Comments/index.module.scss b/src/components/Comments/index.module.scss index d99641d..8fa4d84 100644 --- a/src/components/Comments/index.module.scss +++ b/src/components/Comments/index.module.scss @@ -84,6 +84,14 @@ border-radius: 6px; cursor: pointer; animation: bg-blink var(--dur) infinite steps(10); + overflow: scroll; + -webkit-overflow-scrolling: auto; + + &::-webkit-scrollbar { + width: 0 !important; + height: 0 !important; + display: none; + } } @keyframes bg-blink { diff --git a/src/components/Comments/index.tsx b/src/components/Comments/index.tsx index e8eebb1..e4ffc6a 100644 --- a/src/components/Comments/index.tsx +++ b/src/components/Comments/index.tsx @@ -212,6 +212,7 @@ function CommentItem(props: { )} key={comment.id} id={`comment_id_${comment.id}`} + catchtouchmove > - + {recommendGames.map((game, index) => ( {/* game title */} diff --git a/src/game_pages/detail/components/Participants/index.module.scss b/src/game_pages/detail/components/Participants/index.module.scss index 65a59d6..0da4f50 100644 --- a/src/game_pages/detail/components/Participants/index.module.scss +++ b/src/game_pages/detail/components/Participants/index.module.scss @@ -88,7 +88,13 @@ // background: rgba(255, 255, 255, 0.16); flex: 0 0 auto; overflow: scroll; + -webkit-overflow-scrolling: auto; position: relative; + &::-webkit-scrollbar { + width: 0 !important; + height: 0 !important; + display: none; + } &::before { content: ""; diff --git a/src/game_pages/detail/components/Participants/index.tsx b/src/game_pages/detail/components/Participants/index.tsx index 64761bb..1369537 100644 --- a/src/game_pages/detail/components/Participants/index.tsx +++ b/src/game_pages/detail/components/Participants/index.tsx @@ -360,6 +360,7 @@ export default function Participants(props) { { // const posterRef = useRef(); const { max_participants, participant_count } = detail || {}; - useEffect(() => { - if (id) { - changeMessageType(); - } - }, [id]); + // useEffect(() => { + // if (id) { + // changeMessageType(); + // } + // }, [id]); async function changeMessageType() { try { @@ -76,6 +76,7 @@ export default forwardRef(({ id, from, detail, userInfo }, ref) => { const endTime = dayjs(end_time); const dayofWeek = DayOfWeekMap.get(startTime.day()); const gameLength = `${endTime.diff(startTime, "hour")}小时`; + await changeMessageType(); const url = await generateShareImage({ userAvatar: userInfo.avatar_url, userNickname: userInfo.nickname,