expandableLimitedList with listWithLineBreaks positions

hi how can i make expandable limited list with vertical positions. when i add the listWithLineBreaks it change to horizontal positions but the show more button is working, when i remove the listWithLineBreaks the positions is vertical but show more button is not working anymore,

TextColumn::make('item_group')
    ->label('Item Group')
    ->badge()
    ->separator(',')
    ->limitList(3)
    ->expandableLimitedList()
    ->listWithLineBreaks()
    ->formatStateUsing(function ($state) {
        if (! $state) {
            return [];
        }

        if (is_string($state)) {
            $decoded = json_decode($state, true);

            $state = is_array($decoded)
                ? $decoded
                : explode(',', $state);
        }

        return collect($state)
            ->map(fn ($item) => trim(str_replace(['"', '[', ']'], '', $item)))
            ->filter()
            ->values()
            ->first();
    }),
Was this page helpful?