Commit ceae83c
fix(admin): center empty-state placeholder in Image/File/media picker fields (emdash-cms#1940)
* fix(admin): center empty-state placeholder in image/file/media picker fields
The kumo Button's base classes are 'flex w-max items-center' with no
horizontal justification — fine when the button hugs its content, but the
image/file placeholder buttons stretch it with w-full, leaving the icon
and label pinned to the left edge. SeoImageField already carried an
explicit justify-center for exactly this reason; apply the same class to
the three placeholders that lacked it (image field, file field, and the
block-kit media picker).
Fixes emdash-cms#1934
* chore: add changeset for the placeholder centering fix
---------
Co-authored-by: Matt Kane <mkane@cloudflare.com>1 parent 2f4decf commit ceae83c
4 files changed
Lines changed: 8 additions & 3 deletions
File tree
- .changeset
- packages/admin/src/components
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1662 | 1662 | | |
1663 | 1663 | | |
1664 | 1664 | | |
1665 | | - | |
| 1665 | + | |
1666 | 1666 | | |
1667 | 1667 | | |
1668 | 1668 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| |||
0 commit comments