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,