个人中心加机器人生成配置界面
This commit is contained in:
@@ -123,12 +123,13 @@ const Profile: React.FC = () => {
|
||||
: null;
|
||||
|
||||
return (
|
||||
<div style={{ padding: '32px 40px', background: '#f5f7fa', minHeight: '100vh' }}>
|
||||
<div style={{ padding: '20px 40px', background: '#f5f7fa', minHeight: '100vh' }}>
|
||||
<Title level={4} style={{ marginBottom: 24, fontWeight: 600 }}>
|
||||
个人中心
|
||||
</Title>
|
||||
|
||||
<Row gutter={24}>
|
||||
{/* 🔥 关键:给 Row 添加 align="stretch" 让两列自动等高 */}
|
||||
<Row gutter={24} align="stretch">
|
||||
{/* 左侧信息卡片 */}
|
||||
<Col xs={24} sm={24} md={8} lg={7} xl={6}>
|
||||
<Card
|
||||
@@ -138,9 +139,12 @@ const Profile: React.FC = () => {
|
||||
boxShadow: '0 2px 12px rgba(0,0,0,0.06)',
|
||||
textAlign: 'center',
|
||||
overflow: 'hidden',
|
||||
height: '100%', // 🔥 高度 100%
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
}}
|
||||
>
|
||||
<div style={{ padding: '20px 0' }}>
|
||||
<div style={{ padding: '20px 0', flex: 1 }}> {/* 🔥 自动填充高度 */}
|
||||
<Avatar
|
||||
size={120}
|
||||
src={avatarUrl}
|
||||
@@ -208,6 +212,7 @@ const Profile: React.FC = () => {
|
||||
borderRadius: 12,
|
||||
boxShadow: '0 2px 12px rgba(0,0,0,0.06)',
|
||||
overflow: 'hidden',
|
||||
height: '100%', // 🔥 高度 100%
|
||||
}}
|
||||
>
|
||||
<Tabs
|
||||
|
||||
Reference in New Issue
Block a user