#Rule Builder labels being truncated

5 messages · Page 1 of 1 (latest)

limpid turret
#

Hi, I am currently using the new Rule Builder feature in a form.

return $form
            ->schema([
                Section::make()
                    ->schema([
                        TextInput::make('name')
                            ->label('Segment Name')
                            ->required()
                            ->unique(ignoreRecord: true),
                    ]),
                Section::make('Define Rules')
                    ->schema([
                        RuleBuilder::make('rules')
                            ->constraints(static::getConstraints())
                            ->blockPickerColumns(5)
                            ->blockPickerWidth(MaxWidth::FiveExtraLarge->value),
                    ]),
            ]);

Everything works perfectly except the label of the rules. Since the labels are a bit longer they are truncated and It is difficult to guess the label. Is there any way we can wrap the text of label. Sorry I am not proficient with css.

hazy pebble
#

Why don't you just reduce it to 4 columns then?

limpid turret
hazy pebble
limpid turret
#

Ok thank you so much for your help. I'll try this.