From 8caac1f40aeef479aa469f35a1863eca60b79d8d Mon Sep 17 00:00:00 2001 From: bald-cat Date: Wed, 12 Mar 2025 14:01:45 +0200 Subject: [PATCH 1/2] Added sizes for Matrix --- resources/views/fields/matrix.blade.php | 2 +- src/Screen/Fields/Matrix.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/views/fields/matrix.blade.php b/resources/views/fields/matrix.blade.php index dbeea09701..513b4604a9 100644 --- a/resources/views/fields/matrix.blade.php +++ b/resources/views/fields/matrix.blade.php @@ -8,7 +8,7 @@ @foreach($columns as $key => $column) - + {{ is_int($key) ? $column : $key }} @endforeach diff --git a/src/Screen/Fields/Matrix.php b/src/Screen/Fields/Matrix.php index 3e6f7dd5b2..5ece1c8b16 100644 --- a/src/Screen/Fields/Matrix.php +++ b/src/Screen/Fields/Matrix.php @@ -13,6 +13,7 @@ * @method static keyValue(bool $keyValue) * @method static title(string $value = null) * @method static help(string $value = null) + * @method static sizes(array $sizes) */ class Matrix extends Field { @@ -38,6 +39,7 @@ class Matrix extends Field 'key', 'value', ], + 'sizes' => false, ]; /** From 90f30db344c475859e0048c11d817ba98bb7d9dc Mon Sep 17 00:00:00 2001 From: bald-cat Date: Wed, 12 Mar 2025 14:32:31 +0200 Subject: [PATCH 2/2] Added sizes for Matrix --- resources/views/fields/matrix.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/fields/matrix.blade.php b/resources/views/fields/matrix.blade.php index 513b4604a9..b4d6c357c9 100644 --- a/resources/views/fields/matrix.blade.php +++ b/resources/views/fields/matrix.blade.php @@ -8,7 +8,7 @@ @foreach($columns as $key => $column) - + {{ is_int($key) ? $column : $key }} @endforeach