@celestia-island/hikari 0.55.436 → 0.55.437
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
CHANGED
|
@@ -9,6 +9,14 @@
|
|
|
9
9
|
align-items: center;
|
|
10
10
|
justify-content: center;
|
|
11
11
|
overflow: hidden;
|
|
12
|
+
/* Avatars are round — the letter fallback included (2026-11-20 user
|
|
13
|
+
report: the workspace roster's fallback chip rendered SQUARE because
|
|
14
|
+
this rule never rounded; every other avatar grammar in the two faces
|
|
15
|
+
— .s-user-avatar / .s-user-avatar-chip / the account modal's
|
|
16
|
+
rounded-full preview — already answers 50%, so the component was the
|
|
17
|
+
one square holdout). `overflow: hidden` above clips the <img> to the
|
|
18
|
+
same circle. */
|
|
19
|
+
border-radius: 50%;
|
|
12
20
|
background-color: rgb(var(--color-muted, 108 108 108) / 15%);
|
|
13
21
|
color: rgb(var(--color-text-secondary, 102 102 102));
|
|
14
22
|
transition: all 0.2s ease;
|
|
@@ -84,6 +84,13 @@ describe("avatar letter-fallback optical centering (text-box guard)", () => {
|
|
|
84
84
|
expect(ruleFor(css.adminTokens, ".s-user-avatar", "admin-tokens")).toContain("display: flex");
|
|
85
85
|
});
|
|
86
86
|
|
|
87
|
+
it("hk-avatar: the fallback chip is ROUND (2026-11-20 square-chip report)", () => {
|
|
88
|
+
// The roster fallback rendered a SQUARE letter chip because this rule
|
|
89
|
+
// never rounded while every sibling avatar grammar answers 50% — the
|
|
90
|
+
// component was the one square holdout. Pin it so it stays round.
|
|
91
|
+
expect(ruleFor(css.avatar, ".hk-avatar", "avatar")).toContain("border-radius: 50%");
|
|
92
|
+
});
|
|
93
|
+
|
|
87
94
|
it("hk-avatar-fallback: guard block swaps flex for block + centered trimmed line", () => {
|
|
88
95
|
const body = supportsBody(css.avatar, SUPPORTS_PREAMBLE, "avatar");
|
|
89
96
|
expect(guardedSelector(css.avatar, SUPPORTS_PREAMBLE, "avatar")).toBe(".hk-avatar-fallback");
|