Column Spans On Form within Grid

Hello,

I have an issue while using Grid from forms.

For some reason my two fields are not taking 50-50 space within. In image is those spacings.

Grid::make(columns: 6)
                            ->schema([
                                TextInput::make('kp')
                                    ->label('kp')
                                    ->placeholder('inputs.kp_placeholder')
                                    ->maxLength(50)
                                    ->columnSpan([
                                        'default' => 6,
                                        'sm' => 6,
                                        'md' => 3,
                                        'lg' => 3,
                                        'xl' => 3,
                                    ]),

                                TextInput::make('ko')
                                    ->label('kp')
                                    ->placeholder('inputs.kp_placeholder')
                                    ->maxLength(50)
                                    ->columnSpan([
                                        'default' => 6,
                                        'sm' => 6,
                                        'md' => 3,
                                        'lg' => 3,
                                        'xl' => 3,
                                    ]),
                                Textarea::make('address')
                                    ->columnSpan(6),
                            ])
                            ->columnSpan([
                                'default' => 6,
                                'sm' => 6,
                                'md' => 3,
                                'lg' => 3,
                                'xl' => 3,
                            ]),
image.png
Was this page helpful?