Commit 68c3e60
fix(ui-color-picker): fix mixer button alignment and visual jump
Fixed two issues with the ColorPicker mixer button:
1. Alignment calculation returning 0 due to timing - measurement now happens
after CSS-in-JS styles are applied using requestAnimationFrame
2. Visual jump on load - button now starts bottom-aligned and switches to
top-aligned after calculation completes, minimizing the jump
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 66f2b18 commit 68c3e60
2 files changed
+19
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
133 | 139 | | |
134 | 140 | | |
135 | 141 | | |
| |||
488 | 494 | | |
489 | 495 | | |
490 | 496 | | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | 497 | | |
495 | | - | |
| 498 | + | |
| 499 | + | |
496 | 500 | | |
497 | 501 | | |
498 | 502 | | |
499 | 503 | | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
500 | 507 | | |
501 | 508 | | |
502 | 509 | | |
| |||
714 | 721 | | |
715 | 722 | | |
716 | 723 | | |
717 | | - | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
718 | 728 | | |
719 | 729 | | |
720 | 730 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | 125 | | |
127 | 126 | | |
128 | 127 | | |
129 | 128 | | |
130 | 129 | | |
131 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
| |||
0 commit comments