@blocklet/ui-react 2.11.33 → 2.11.34

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.
@@ -69,6 +69,7 @@ export default function UserBasicInfo({
69
69
  backgroundColor: "#fff",
70
70
  position: "relative",
71
71
  overflow: "hidden",
72
+ flexShrink: 0,
72
73
  ...isMyself ? {
73
74
  cursor: "pointer",
74
75
  "&::after": {
@@ -90,36 +91,45 @@ export default function UserBasicInfo({
90
91
  onClick: isMyself ? switchProfile : noop
91
92
  }
92
93
  ),
93
- /* @__PURE__ */ jsxs(Box, { children: [
94
- /* @__PURE__ */ jsxs(
95
- Typography,
96
- {
97
- variant: "h6",
98
- sx: {
99
- fontWeight: "bold",
100
- display: "flex",
101
- alignItems: "center",
102
- gap: 1,
103
- fontSize: "24px !important"
104
- },
105
- children: [
106
- user?.fullName,
107
- isMyself ? /* @__PURE__ */ jsxs(Fragment, { children: [
108
- /* @__PURE__ */ jsx(SwitchRole, { user, switchPassport }),
109
- !isEmpty(user.url) && /* @__PURE__ */ jsx(
110
- Tooltip,
111
- {
112
- title: !loading && translate(translations, "refreshProfile.title", locale),
113
- sx: { display: "flex", alignItems: "center" },
114
- children: loading ? /* @__PURE__ */ jsx(CircularProgress, { size: "16px", sx: { color: theme?.colors?.primary, ml: 0.5 } }) : /* @__PURE__ */ jsx(RefreshOutlinedIcon, { onClick: refreshProfile })
115
- }
116
- )
117
- ] }) : null
118
- ]
119
- }
120
- ),
121
- /* @__PURE__ */ jsx(DID, { did: user.did, showQrcode: true, copyable: true, compact: !showFullDid, responsive: !showFullDid, locale })
122
- ] })
94
+ /* @__PURE__ */ jsxs(
95
+ Box,
96
+ {
97
+ sx: {
98
+ flex: 1,
99
+ overflow: "hidden"
100
+ },
101
+ children: [
102
+ /* @__PURE__ */ jsxs(
103
+ Typography,
104
+ {
105
+ variant: "h6",
106
+ sx: {
107
+ fontWeight: "bold",
108
+ display: "flex",
109
+ alignItems: "center",
110
+ gap: 1,
111
+ fontSize: "24px !important"
112
+ },
113
+ children: [
114
+ user?.fullName,
115
+ isMyself ? /* @__PURE__ */ jsxs(Fragment, { children: [
116
+ /* @__PURE__ */ jsx(SwitchRole, { user, switchPassport }),
117
+ !isEmpty(user.url) && /* @__PURE__ */ jsx(
118
+ Tooltip,
119
+ {
120
+ title: !loading && translate(translations, "refreshProfile.title", locale),
121
+ sx: { display: "flex", alignItems: "center" },
122
+ children: loading ? /* @__PURE__ */ jsx(CircularProgress, { size: "16px", sx: { color: theme?.colors?.primary, ml: 0.5 } }) : /* @__PURE__ */ jsx(RefreshOutlinedIcon, { onClick: refreshProfile })
123
+ }
124
+ )
125
+ ] }) : null
126
+ ]
127
+ }
128
+ ),
129
+ /* @__PURE__ */ jsx(DID, { did: user.did, showQrcode: true, copyable: true, compact: !showFullDid, responsive: !showFullDid, locale })
130
+ ]
131
+ }
132
+ )
123
133
  ]
124
134
  }
125
135
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/ui-react",
3
- "version": "2.11.33",
3
+ "version": "2.11.34",
4
4
  "description": "Some useful front-end web components that can be used in Blocklets.",
5
5
  "keywords": [
6
6
  "react",
@@ -33,10 +33,10 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@abtnode/constant": "^1.16.38",
36
- "@arcblock/bridge": "^2.11.33",
37
- "@arcblock/react-hooks": "^2.11.33",
36
+ "@arcblock/bridge": "^2.11.34",
37
+ "@arcblock/react-hooks": "^2.11.34",
38
38
  "@arcblock/ws": "^1.19.9",
39
- "@blocklet/did-space-react": "^1.0.11",
39
+ "@blocklet/did-space-react": "^1.0.12",
40
40
  "@iconify-icons/logos": "^1.2.36",
41
41
  "@iconify-icons/material-symbols": "^1.2.58",
42
42
  "@iconify/react": "^4.1.1",
@@ -84,5 +84,5 @@
84
84
  "jest": "^29.7.0",
85
85
  "unbuild": "^2.0.0"
86
86
  },
87
- "gitHead": "96db26b284912b24165e233da62fb5e50091bf41"
87
+ "gitHead": "da67489f9fe5ca7e635ea1b9e8136dbf582e00cb"
88
88
  }
@@ -83,6 +83,7 @@ export default function UserBasicInfo({
83
83
  backgroundColor: '#fff',
84
84
  position: 'relative',
85
85
  overflow: 'hidden',
86
+ flexShrink: 0,
86
87
  ...(isMyself
87
88
  ? {
88
89
  cursor: 'pointer',
@@ -105,7 +106,11 @@ export default function UserBasicInfo({
105
106
  }}
106
107
  onClick={isMyself ? switchProfile : noop}
107
108
  />
108
- <Box>
109
+ <Box
110
+ sx={{
111
+ flex: 1,
112
+ overflow: 'hidden',
113
+ }}>
109
114
  <Typography
110
115
  variant="h6"
111
116
  sx={{