token/me mobile样式小调整

This commit is contained in:
Wang Kejun 2023-03-20 22:17:41 +08:00
parent 1e11b81b72
commit c5a16eb037
3 changed files with 30 additions and 17 deletions

View File

@ -14,10 +14,14 @@
background-color: var(--oak-bg-color-container);
.avatar {
width: 48px;
height: 48px;
width: 60px;
height: 60px;
background-color: var(--oak-color-primary);
margin-bottom: 10px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.nickname {
@ -25,13 +29,12 @@
}
.userIcon {
height: 24px;
width: 24px;
color: #fff;
}
}
.list {
background-color: #fff;
:global {
.t-list-item__meta {

View File

@ -14,10 +14,14 @@
background-color: var(--oak-bg-color-container);
.avatar {
width: 48px;
height: 48px;
width: 60px;
height: 60px;
background-color: var(--oak-color-primary);
margin-bottom: 10px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.nickname {
@ -25,13 +29,12 @@
}
.userIcon {
height: 24px;
width: 24px;
color: #fff;
}
}
.list {
background-color: #fff;
:global {
.t-list-item__meta {

View File

@ -99,13 +99,20 @@ export default function Render(props: WebComponentProps<EntityDict, 'token', tru
<Input
placeholder="请输入昵称"
value={nickname}
onChange={(e) => updateItem({ user: {
onChange={(e) =>
updateItem(
{
user: {
id: generateNewId(),
action: 'update',
data: {
nickname: e.target.value
nickname: e.target.value,
},
},
},
tokenId!
)
}
}}, tokenId! )}
/>
</Drawer>
</div>