@flow-industries/id 0.24.4 → 0.24.5

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.
@@ -32,14 +32,19 @@ export function createProfileButton(options) {
32
32
  button.dataset.flowProfile = "";
33
33
  Object.assign(button.style, {
34
34
  display: "flex",
35
+ boxSizing: "border-box",
36
+ height: "var(--flow-profile-height, 2.25rem)",
37
+ flexShrink: "0",
35
38
  alignItems: "center",
36
39
  gap: "8px",
37
40
  border: "0",
38
- borderRadius: "999px",
39
- padding: "10px 16px",
40
- background: "Canvas",
41
+ borderRadius: "0",
42
+ padding: "0.25rem 0.75rem",
43
+ background: "transparent",
41
44
  color: "CanvasText",
42
45
  font: "inherit",
46
+ fontSize: "0.875rem",
47
+ lineHeight: "1.25rem",
43
48
  cursor: "pointer",
44
49
  pointerEvents: "auto",
45
50
  maxWidth: "240px",
@@ -59,14 +64,21 @@ export function createProfileButton(options) {
59
64
  display: "flex",
60
65
  alignItems: "center",
61
66
  justifyContent: "center",
62
- width: "28px",
63
- height: "28px",
64
- borderRadius: "50%",
67
+ width: "calc(var(--flow-profile-height, 2.25rem) - 0.5rem)",
68
+ height: "calc(var(--flow-profile-height, 2.25rem) - 0.5rem)",
69
+ borderRadius: "var(--squircle-radius, 35%)",
70
+ // biome-ignore lint/plugin: CSSStyleDeclaration requires the browser's property name.
71
+ cornerShape: "superellipse(1.6)",
65
72
  overflow: "hidden",
66
73
  background: "color-mix(in srgb, currentColor 10%, transparent)",
67
74
  flexShrink: "0",
68
75
  });
69
76
  const name = document.createElement("span");
77
+ Object.assign(name.style, {
78
+ minWidth: "0",
79
+ overflow: "hidden",
80
+ textOverflow: "ellipsis",
81
+ });
70
82
  button.append(avatar, name);
71
83
  const fallback = document.createElement("a");
72
84
  fallback.href = `${host}/account`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flow-industries/id",
3
- "version": "0.24.4",
3
+ "version": "0.24.5",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",