I found the solution this way.
But when the subcategory name is long, it breaks.
I’m waiting if anyone can find a solution to this.
You can use it in this state. ![]()
When long name.
When short name.
.category-list .subcategories {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
.category-list .subcategories .subcategory {
flex-shrink: 0;
min-width: 25%;
}

