@rpcbase/client 0.113.0 → 0.115.0
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.
- package/package.json +1 -1
- package/ui/Avatar/index.web.js +1 -5
- package/ui/Avatar/styles.js +1 -1
package/package.json
CHANGED
package/ui/Avatar/index.web.js
CHANGED
|
@@ -14,9 +14,6 @@ const Avatar = ({
|
|
|
14
14
|
}) => {
|
|
15
15
|
const sizeStyles = SIZE_STYLES[size]
|
|
16
16
|
|
|
17
|
-
// TODO: too many re-renders in conv sidebar
|
|
18
|
-
// console.log("RENDER AVATAR", text)
|
|
19
|
-
|
|
20
17
|
return (
|
|
21
18
|
<div
|
|
22
19
|
className={cx("font-monospace", className)}
|
|
@@ -26,12 +23,11 @@ const Avatar = ({
|
|
|
26
23
|
alignItems: "center",
|
|
27
24
|
backgroundColor: color,
|
|
28
25
|
userSelect: "none",
|
|
29
|
-
fontSize: "inherit",
|
|
30
26
|
...sizeStyles,
|
|
31
27
|
...style,
|
|
32
28
|
}}
|
|
33
29
|
>
|
|
34
|
-
<Text style={{color: textColor}}>{text}</Text>
|
|
30
|
+
<Text style={{color: textColor, font: "inherit"}}>{text}</Text>
|
|
35
31
|
</div>
|
|
36
32
|
)
|
|
37
33
|
}
|
package/ui/Avatar/styles.js
CHANGED
|
@@ -24,7 +24,7 @@ const getSizeProps = ({size, smoothRadius, fallbackRadius}) => ({
|
|
|
24
24
|
export const SIZE_STYLES = {
|
|
25
25
|
small: {
|
|
26
26
|
...getSizeProps({size: 22, smoothRadius: 4, fallbackRadius: 3}),
|
|
27
|
-
fontSize:
|
|
27
|
+
fontSize: 9,
|
|
28
28
|
},
|
|
29
29
|
medium: {
|
|
30
30
|
...getSizeProps({size: 34, smoothRadius: 8, fallbackRadius: 6}),
|