fix: 修复球局详情页组织者组织球局title换行问题

This commit is contained in:
2026-03-28 10:52:11 +08:00
parent 4dc8e84f5c
commit 8c6fb1190e
2 changed files with 35 additions and 22 deletions

View File

@@ -86,12 +86,12 @@ export default function OrganizerInfo(props) {
await LoginService.followUser(id);
}
onUpdateUserInfo();
Taro.showToast({
(Taro as any).showToast({
title: `${nickname} ${follow ? "已取消关注" : "已关注"}`,
icon: "success",
});
} catch (e) {
Taro.showToast({
(Taro as any).showToast({
title: `${nickname} ${follow ? "取消关注失败" : "关注失败"}`,
icon: "error",
});
@@ -193,13 +193,17 @@ export default function OrganizerInfo(props) {
className={styles["recommend-games-list-item"]}
onClick={handleViewGame.bind(null, game.id)}
>
{/* game title */}
<View className={styles["recommend-games-list-item-title"]}>
<Text>{game.title}</Text>
<Image
className={
styles["recommend-games-list-item-title-arrow"]
}
{/* game title */}
<View className={styles["recommend-games-list-item-title"]}>
<Text
className={styles["recommend-games-list-item-title-text"]}
>
{game.title}
</Text>
<Image
className={
styles["recommend-games-list-item-title-arrow"]
}
src={img.ICON_DETAIL_ARROW_RIGHT}
/>
</View>