补充角色切换弹窗当前角色信息
This commit is contained in:
@@ -405,6 +405,29 @@
|
|||||||
overflow-y: auto;
|
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 {
|
.family-list {
|
||||||
max-height: 44vh;
|
max-height: 44vh;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
|||||||
@@ -889,6 +889,12 @@ export default function Sleep() {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Text className='modal-title'>切换 AI 角色</Text>
|
<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 ? (
|
{isLoadingRoles ? (
|
||||||
<Text className='device-switch-empty'>角色加载中...</Text>
|
<Text className='device-switch-empty'>角色加载中...</Text>
|
||||||
) : roles.length === 0 ? (
|
) : roles.length === 0 ? (
|
||||||
|
|||||||
Reference in New Issue
Block a user