feat: 修改问题

This commit is contained in:
2025-12-09 17:10:03 +08:00
parent 8b314b9900
commit ef4b9d4935
8 changed files with 52 additions and 6 deletions

View File

@@ -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 {

View File

@@ -212,6 +212,7 @@ function CommentItem(props: {
)}
key={comment.id}
id={`comment_id_${comment.id}`}
catchtouchmove
>
<View style={{ width: level === 1 ? "36px" : "28px" }}>
<Image

View File

@@ -24,6 +24,7 @@
align-items: center;
gap: 4px;
overflow: scroll;
-webkit-overflow-scrolling: auto;
border: 0.5px solid rgba(255, 255, 255, 0.08);
background: rgba(255, 255, 255, 0.25);
color: #fff;
@@ -31,6 +32,11 @@
flex-shrink: 0;
font-family: "Quicksand";
animation: intro 0.3s ease-in forwards;
&::-webkit-scrollbar {
width: 0 !important;
height: 0 !important;
display: none;
}
@keyframes intro {
from {
@@ -55,7 +61,13 @@
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
background: rgba(255, 255, 255, 0.25);
overflow: scroll;
-webkit-overflow-scrolling: auto;
font-weight: 600;
&::-webkit-scrollbar {
width: 0 !important;
height: 0 !important;
display: none;
}
}
.day {
@@ -158,7 +170,13 @@
border: 0.5px solid rgba(255, 255, 255, 0.08);
background: rgba(255, 255, 255, 0.25);
overflow: scroll;
-webkit-overflow-scrolling: auto;
animation: intro 0.3s ease-in forwards;
&::-webkit-scrollbar {
width: 0 !important;
height: 0 !important;
display: none;
}
@keyframes intro {
from {

View File

@@ -159,9 +159,15 @@
// border: 1px solid rgba(255, 255, 255, 0.1);
// background: rgba(255, 255, 255, 0.16);
overflow: scroll;
-webkit-overflow-scrolling: auto;
padding: 12px 0 12px 15px;
box-sizing: border-box;
position: relative;
&::-webkit-scrollbar {
width: 0 !important;
height: 0 !important;
display: none;
}
&::before {
content: "";

View File

@@ -181,13 +181,18 @@ export default function OrganizerInfo(props) {
src={img.ICON_DETAIL_ARROW_RIGHT}
/>
</View>
<ScrollView refresherBackground="#FAFAFA" className={styles["recommend-games-list"]} scrollX>
<ScrollView
refresherBackground="#FAFAFA"
className={styles["recommend-games-list"]}
scrollX
>
<View className={styles["recommend-games-list-content"]}>
{recommendGames.map((game, index) => (
<View
key={index}
className={styles["recommend-games-list-item"]}
onClick={handleViewGame.bind(null, game.id)}
catchMove
>
{/* game title */}
<View className={styles["recommend-games-list-item-title"]}>

View File

@@ -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: "";

View File

@@ -360,6 +360,7 @@ export default function Participants(props) {
<View
key={participant.id}
className={styles["participants-list-item"]}
catchMove
>
<Image
className={styles["participants-list-item-avatar"]}

View File

@@ -30,11 +30,11 @@ export default forwardRef(({ id, from, detail, userInfo }, ref) => {
// 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,