Ionic 5 how to change ion-segment-button width to auto?

I have a problem with width of ion-segment-button, when text of the button is overflow hidden
i need this button with overflow auto to show all text

this image show my problem:

The texts of buttons is this: [‘Promoção’, ‘Pizzas’, ‘Pizzas Doces’, ‘Calzones’, ‘Bordas Recheadas’, ‘Combos’]

the itens Pizzas Doces and Bordas Recheadas is overflow

1 Like

You can fix with min-width. (global or app.component.scss)

ion-segment-button {
    min-width: auto !important;
}
1 Like

Thanks TaGi. It worked. I was looking for a solution for some time.