补充角色切换弹窗当前角色信息

This commit is contained in:
stu2not
2026-05-28 18:15:33 +08:00
parent b2f5631461
commit 867a890d56
2 changed files with 29 additions and 0 deletions

View File

@@ -405,6 +405,29 @@
overflow-y: auto;
}
.current-role-intro {
padding: 20px 22px;
border-radius: 16px;
background: #F7F8FA;
margin-bottom: 18px;
}
.current-role-label {
display: block;
font-size: 27px;
line-height: 1.45;
color: #1A1A1A;
font-weight: 700;
margin-bottom: 8px;
}
.current-role-desc {
display: block;
font-size: 25px;
line-height: 1.55;
color: #666666;
}
.family-list {
max-height: 44vh;
overflow-y: auto;

View File

@@ -889,6 +889,12 @@ export default function Sleep() {
}}
>
<Text className='modal-title'> AI </Text>
<View className='current-role-intro'>
<Text className='current-role-label'>{deviceRole?.name || deviceRole?.role_key || '未设置'}</Text>
<Text className='current-role-desc'>
{deviceRole?.description || '暂无角色简介'}
</Text>
</View>
{isLoadingRoles ? (
<Text className='device-switch-empty'>...</Text>
) : roles.length === 0 ? (