fix: 修复球局详情页组织者组织球局title换行问题
This commit is contained in:
@@ -189,7 +189,16 @@
|
|||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
line-height: 24px; /* 150% */
|
line-height: 24px; /* 150% */
|
||||||
|
|
||||||
|
&-text {
|
||||||
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
&-arrow {
|
&-arrow {
|
||||||
|
flex: 0 0 12px;
|
||||||
width: 12px;
|
width: 12px;
|
||||||
height: 12px;
|
height: 12px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -86,12 +86,12 @@ export default function OrganizerInfo(props) {
|
|||||||
await LoginService.followUser(id);
|
await LoginService.followUser(id);
|
||||||
}
|
}
|
||||||
onUpdateUserInfo();
|
onUpdateUserInfo();
|
||||||
Taro.showToast({
|
(Taro as any).showToast({
|
||||||
title: `${nickname} ${follow ? "已取消关注" : "已关注"}`,
|
title: `${nickname} ${follow ? "已取消关注" : "已关注"}`,
|
||||||
icon: "success",
|
icon: "success",
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
Taro.showToast({
|
(Taro as any).showToast({
|
||||||
title: `${nickname} ${follow ? "取消关注失败" : "关注失败"}`,
|
title: `${nickname} ${follow ? "取消关注失败" : "关注失败"}`,
|
||||||
icon: "error",
|
icon: "error",
|
||||||
});
|
});
|
||||||
@@ -195,7 +195,11 @@ export default function OrganizerInfo(props) {
|
|||||||
>
|
>
|
||||||
{/* game title */}
|
{/* game title */}
|
||||||
<View className={styles["recommend-games-list-item-title"]}>
|
<View className={styles["recommend-games-list-item-title"]}>
|
||||||
<Text>{game.title}</Text>
|
<Text
|
||||||
|
className={styles["recommend-games-list-item-title-text"]}
|
||||||
|
>
|
||||||
|
{game.title}
|
||||||
|
</Text>
|
||||||
<Image
|
<Image
|
||||||
className={
|
className={
|
||||||
styles["recommend-games-list-item-title-arrow"]
|
styles["recommend-games-list-item-title-arrow"]
|
||||||
|
|||||||
Reference in New Issue
Block a user