修复登陆页图像拉升 和 问题
This commit is contained in:
@@ -106,8 +106,8 @@
|
||||
min-width: 0;
|
||||
|
||||
.user-avatar {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
width: 48px;
|
||||
border-radius: 999px;
|
||||
flex-shrink: 0;
|
||||
cursor: pointer;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { useState, useEffect } from "react";
|
||||
import { View, Text, ScrollView, Image, Input } from "@tarojs/components";
|
||||
import { Avatar } from "@nutui/nutui-react-taro";
|
||||
import { withAuth, EmptyState, BackNavbar } from "@/components";
|
||||
import commentService, { CommentActivity } from "@/services/commentService";
|
||||
import { formatShortRelativeTime } from "@/utils/timeUtils";
|
||||
@@ -225,10 +224,10 @@ const CommentReply = () => {
|
||||
onClick={() => handleCommentClick(item)}
|
||||
>
|
||||
<View className="comment-left">
|
||||
<Avatar
|
||||
<Image
|
||||
className="user-avatar"
|
||||
src={item.user_avatar || "https://img.yzcdn.cn/vant/cat.jpeg"}
|
||||
size="48px"
|
||||
mode="aspectFill"
|
||||
onClick={(e) => handleUserClick(e, item.user_id)}
|
||||
/>
|
||||
|
||||
|
||||
@@ -101,6 +101,7 @@
|
||||
// box-shadow: 0px 4px 36px 0px rgba(0, 0, 0, 0.06);
|
||||
padding: 0 0 12px;
|
||||
transition: all 0.2s;
|
||||
cursor: pointer;
|
||||
|
||||
&:active {
|
||||
transform: scale(0.98);
|
||||
@@ -164,7 +165,6 @@
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
|
||||
.action-text {
|
||||
font-family: "PingFang SC";
|
||||
@@ -185,10 +185,6 @@
|
||||
height: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
&:active {
|
||||
opacity: 0.7;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -174,7 +174,7 @@ const Message = () => {
|
||||
{filteredMessages.length > 0 ? (
|
||||
<View className="message-cards">
|
||||
{filteredMessages.map((message) => (
|
||||
<View className="message-card" key={message.id}>
|
||||
<View className="message-card" key={message.id} onClick={() => handleViewDetail(message)}>
|
||||
<View className="card-title-row">
|
||||
<Text className="card-title">{message.title}</Text>
|
||||
</View>
|
||||
@@ -186,7 +186,7 @@ const Message = () => {
|
||||
</View>
|
||||
<View className="card-footer">
|
||||
<View className="footer-divider"></View>
|
||||
<View className="footer-action" onClick={() => handleViewDetail(message)}>
|
||||
<View className="footer-action">
|
||||
<Text className="action-text">查看详情</Text>
|
||||
<View className="action-arrow">
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { useState, useEffect } from "react";
|
||||
import { View, Text, ScrollView } from "@tarojs/components";
|
||||
import { Avatar } from "@nutui/nutui-react-taro";
|
||||
import { View, Text, ScrollView, Image } from "@tarojs/components";
|
||||
import { withAuth, EmptyState, BackNavbar } from "@/components";
|
||||
import FollowService from "@/services/followService";
|
||||
import { formatShortRelativeTime } from "@/utils/timeUtils";
|
||||
@@ -163,10 +162,10 @@ const NewFollow = () => {
|
||||
return (
|
||||
<View className="follow-item" key={item.id}>
|
||||
<View className="follow-left" onClick={() => handleUserClick(item.user_id)}>
|
||||
<Avatar
|
||||
className="user-avatar"
|
||||
<Image
|
||||
className="user-avatar" mode="aspectFill"
|
||||
src={item.user_avatar || "https://img.yzcdn.cn/vant/cat.jpeg"}
|
||||
size="40px"
|
||||
|
||||
/>
|
||||
|
||||
<View className="user-info">
|
||||
|
||||
Reference in New Issue
Block a user