fix: Fused group with default columns

This commit is contained in:
Dan Harrin
2025-09-15 09:46:31 +01:00
parent a97d81f124
commit d5f81ff2d6
3 changed files with 12 additions and 2 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
@@ -26,6 +26,16 @@
@apply rounded-b-lg;
}
&.fi-grid-cols {
& > :first-child .fi-input-wrp {
@apply rounded-se-none rounded-es-lg;
}
& > :last-child .fi-input-wrp {
@apply rounded-se-lg rounded-es-none;
}
}
&.sm\:fi-grid-cols {
& > :first-child .fi-input-wrp {
@apply sm:rounded-se-none sm:rounded-es-lg;
@@ -189,7 +189,7 @@ class SupportServiceProvider extends PackageServiceProvider
'fi-grid-direction-col' => $direction === GridDirection::Column,
...array_map(
fn (string $breakpoint): string => match ($breakpoint) {
'default' => '',
'default' => (($columns[$breakpoint] ?? 1) > 1) ? 'fi-grid-cols' : '',
default => "{$breakpoint}:fi-grid-cols",
},
array_keys($columns),