Patrik
30ea8e1bac
fix(ui): blocks field not respecting width styles in row layouts ( #13502 )
...
### What?
This PR applies `mergeFieldStyles` to the `BlocksField` component,
ensuring that custom admin styles such as `width` are correctly
respected when Blocks fields are placed inside row layouts.
### Why?
Previously, Blocks fields did not inherit or apply their `admin.width`
(or other merged field styles). For example, when placing two Blocks
fields side by side inside a row with `width: '50%'`, the widths were
ignored, causing layout issues.
### How?
- Imported and used `mergeFieldStyles` within `BlocksField`.
- Applied the merged styles to the root `<div>` via the `style` prop,
consistent with how other field components (like `TextField`) handle
styles.
Fixes #13498
2025-08-18 09:15:40 -07:00
..
2025-08-11 16:59:03 -04:00
2025-07-30 05:52:01 -07:00
2025-07-29 11:30:07 -04:00
2025-05-19 12:36:40 -03:00
2025-07-09 10:39:02 -04:00
2024-11-16 15:30:05 -05:00
2025-06-05 09:19:19 -07:00
2025-07-29 16:27:45 -04:00
2025-04-08 17:25:29 -03:00
2025-05-19 12:36:40 -03:00
2025-07-24 14:00:52 -04:00
2025-06-05 09:19:19 -07:00
2025-06-19 09:18:29 +00:00
2025-06-05 09:19:19 -07:00
2025-05-19 12:36:40 -03:00
2025-06-05 09:19:19 -07:00
2025-08-14 02:44:56 +03:00
2025-06-05 09:19:19 -07:00
2025-05-19 12:36:40 -03:00
2025-05-19 12:36:40 -03:00
2025-05-19 12:36:40 -03:00
2025-06-05 09:19:19 -07:00
2025-08-01 16:04:51 +01:00
2025-05-19 12:36:40 -03:00
2025-08-18 09:15:40 -07:00
2025-07-24 14:00:52 -04:00
2025-08-05 13:39:59 -04:00
2025-06-05 09:19:19 -07:00
2025-08-14 19:36:02 -04:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-05-19 12:36:40 -03:00
2025-08-12 09:49:47 -07:00
2025-07-30 05:52:01 -07:00
2025-06-11 06:23:22 -07:00
2025-07-30 05:52:01 -07:00
2024-10-30 17:56:50 +00:00
2025-08-01 18:05:54 +03:00
2025-07-30 13:16:18 +00:00
2025-05-19 12:36:40 -03:00
2025-07-30 05:52:01 -07:00
2024-08-13 12:54:33 -04:00
2025-08-15 14:55:12 -04:00
2025-05-19 12:36:40 -03:00
2025-07-24 14:00:52 -04:00
2025-06-05 09:19:19 -07:00
2025-05-19 12:36:40 -03:00
2025-05-19 12:36:40 -03:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-08-15 11:56:58 -07:00
2025-08-12 11:33:29 -04:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-08-12 18:59:06 +00:00
2025-08-12 11:55:17 -04:00
2025-07-25 09:10:21 -04:00
2024-07-23 13:44:44 -04:00
2025-07-23 16:48:25 -07:00
2025-06-27 09:13:52 -04:00
2025-07-29 03:25:09 +00:00
2025-07-10 08:00:26 -07:00
2025-07-10 08:00:26 -07:00
2025-07-10 08:00:26 -07:00
2025-07-10 08:00:26 -07:00
2025-07-10 08:00:26 -07:00
2025-07-30 14:11:11 -07:00
2025-06-29 14:20:54 -04:00
2025-08-15 14:52:45 -04:00
2025-08-14 19:36:02 -04:00
2024-07-11 15:59:38 -04:00
2024-05-25 15:45:05 +00:00
2025-06-04 17:34:37 -03:00
2023-09-01 14:45:41 -04:00
2024-03-07 11:33:46 -05:00
2025-06-05 22:01:55 -03:00
2024-12-31 09:14:56 -05:00
2025-07-30 05:52:01 -07:00
2025-07-16 15:17:43 -04:00
2025-07-16 15:17:43 -04:00
2024-08-13 12:54:33 -04:00
2025-03-05 19:14:35 +00:00
2024-09-16 17:02:08 +00:00
2025-07-24 14:00:52 -04:00
2025-07-18 06:48:27 -04:00
2024-11-11 13:59:05 -05:00
2024-10-11 18:54:39 +00:00
2025-02-17 19:50:32 +00:00
2024-10-11 18:54:39 +00:00
2024-12-17 14:49:29 -05:00
2025-07-11 16:34:55 -04:00
2025-07-28 16:23:43 +00:00
2024-05-01 17:35:41 -04:00
2025-02-07 03:24:49 +00:00
2025-06-05 22:01:55 -03:00
2025-07-18 06:48:27 -04:00
2024-08-14 08:57:04 -04:00
2024-10-14 20:02:26 +00:00
2025-03-05 19:14:35 +00:00
2025-05-12 09:41:18 -04:00
2024-06-17 14:25:36 -04:00
2025-02-14 00:08:20 +00:00
2024-03-14 23:53:47 -04:00
2025-01-14 20:00:00 -03:00
2025-03-05 19:14:35 +00:00