@blocklet/ui-react 2.12.40 → 2.12.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -180,15 +180,28 @@ export default function UserBasicInfo({
|
|
|
180
180
|
Typography,
|
|
181
181
|
{
|
|
182
182
|
variant: "h6",
|
|
183
|
+
component: "div",
|
|
183
184
|
sx: {
|
|
185
|
+
flex: 1,
|
|
184
186
|
fontWeight: 600,
|
|
185
187
|
display: "flex",
|
|
186
188
|
alignItems: "center",
|
|
187
189
|
gap: 1,
|
|
188
|
-
fontSize: "24px !important"
|
|
190
|
+
fontSize: "24px !important",
|
|
191
|
+
flexWrap: "wrap"
|
|
189
192
|
},
|
|
190
193
|
children: [
|
|
191
|
-
|
|
194
|
+
/* @__PURE__ */ jsx(
|
|
195
|
+
"span",
|
|
196
|
+
{
|
|
197
|
+
style: {
|
|
198
|
+
overflow: "hidden",
|
|
199
|
+
textOverflow: "ellipsis",
|
|
200
|
+
whiteSpace: "nowrap"
|
|
201
|
+
},
|
|
202
|
+
children: user?.fullName
|
|
203
|
+
}
|
|
204
|
+
),
|
|
192
205
|
isMyself ? /* @__PURE__ */ jsx(SwitchRole, { user, switchPassport }) : null
|
|
193
206
|
]
|
|
194
207
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/ui-react",
|
|
3
|
-
"version": "2.12.
|
|
3
|
+
"version": "2.12.42",
|
|
4
4
|
"description": "Some useful front-end web components that can be used in Blocklets.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@abtnode/constant": "^1.16.40",
|
|
36
|
-
"@arcblock/bridge": "^2.12.
|
|
37
|
-
"@arcblock/react-hooks": "^2.12.
|
|
36
|
+
"@arcblock/bridge": "^2.12.42",
|
|
37
|
+
"@arcblock/react-hooks": "^2.12.42",
|
|
38
38
|
"@arcblock/ws": "^1.19.15",
|
|
39
39
|
"@blocklet/did-space-react": "^1.0.35",
|
|
40
40
|
"@iconify-icons/logos": "^1.2.36",
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
"jest": "^29.7.0",
|
|
88
88
|
"unbuild": "^2.0.0"
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "744430cb09820799f4b3c6f811cbfbbb08015453"
|
|
91
91
|
}
|
|
@@ -193,14 +193,24 @@ export default function UserBasicInfo({
|
|
|
193
193
|
}}>
|
|
194
194
|
<Typography
|
|
195
195
|
variant="h6"
|
|
196
|
+
component="div"
|
|
196
197
|
sx={{
|
|
198
|
+
flex: 1,
|
|
197
199
|
fontWeight: 600,
|
|
198
200
|
display: 'flex',
|
|
199
201
|
alignItems: 'center',
|
|
200
202
|
gap: 1,
|
|
201
203
|
fontSize: '24px !important',
|
|
204
|
+
flexWrap: 'wrap',
|
|
202
205
|
}}>
|
|
203
|
-
|
|
206
|
+
<span
|
|
207
|
+
style={{
|
|
208
|
+
overflow: 'hidden',
|
|
209
|
+
textOverflow: 'ellipsis',
|
|
210
|
+
whiteSpace: 'nowrap',
|
|
211
|
+
}}>
|
|
212
|
+
{user?.fullName}
|
|
213
|
+
</span>
|
|
204
214
|
{isMyself ? <SwitchRole user={user} switchPassport={switchPassport} /> : null}
|
|
205
215
|
</Typography>
|
|
206
216
|
<DID did={user.did} showQrcode copyable compact={!showFullDid} responsive={!showFullDid} locale={locale} />
|