From 8c6fb1190e72b638c6c518b7ce036e820d06996b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=9D=B0?= Date: Sat, 28 Mar 2026 10:52:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=90=83=E5=B1=80?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E9=A1=B5=E7=BB=84=E7=BB=87=E8=80=85=E7=BB=84?= =?UTF-8?q?=E7=BB=87=E7=90=83=E5=B1=80title=E6=8D=A2=E8=A1=8C=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../OrganizerInfo/index.module.scss | 35 ++++++++++++------- .../detail/components/OrganizerInfo/index.tsx | 22 +++++++----- 2 files changed, 35 insertions(+), 22 deletions(-) diff --git a/src/game_pages/detail/components/OrganizerInfo/index.module.scss b/src/game_pages/detail/components/OrganizerInfo/index.module.scss index 5fced2b..ed83ca6 100644 --- a/src/game_pages/detail/components/OrganizerInfo/index.module.scss +++ b/src/game_pages/detail/components/OrganizerInfo/index.module.scss @@ -177,23 +177,32 @@ } &-title { - display: flex; - align-items: center; - height: 24px; - gap: 2px; + display: flex; + align-items: center; + height: 24px; + gap: 2px; overflow: hidden; color: rgba(255, 255, 255, 0.85); text-overflow: ellipsis; - font-size: 16px; - font-style: normal; - font-weight: 600; - line-height: 24px; /* 150% */ + font-size: 16px; + font-style: normal; + font-weight: 600; + line-height: 24px; /* 150% */ - &-arrow { - width: 12px; - height: 12px; - } - } + &-text { + flex: 1; + min-width: 0; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } + + &-arrow { + flex: 0 0 12px; + width: 12px; + height: 12px; + } + } &-time-range { overflow: hidden; diff --git a/src/game_pages/detail/components/OrganizerInfo/index.tsx b/src/game_pages/detail/components/OrganizerInfo/index.tsx index da0fbd4..9b45264 100644 --- a/src/game_pages/detail/components/OrganizerInfo/index.tsx +++ b/src/game_pages/detail/components/OrganizerInfo/index.tsx @@ -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 */} - - {game.title} - + + {game.title} + +