I have a list which is made by Vue.js
Here is my code:
<ul>
<li
v-for="category in item.children"
:key="category.id"
class="menu-item"
>
<nuxt-link
:to="
localePath(
`/category/${category.slug}/${category.id}`
)
"
>
<h5>{{ category.lang[0].name }}</h5>
</nuxt-link>
<ul class="mega-menu__list">
<li
v-for="subItem in category.children"
:key="subItem.id"
>
<nuxt-link
:to="
localePath(
`/category/${subItem.slug}/${subItem.id}`
)
"
>
{{ subItem.lang[0].name }}
</nuxt-link>
</li>
</ul>
</li>
</ul>
But I want it to display like this which child is in the same column:
Any help is appreciated.


divand eachliis asection...divorsection(they have to have a parentdivbecause they are the whole thing). Then, each menu can be aulfrom each section. Still, doing so, will not prevent your content from showing as you want, but at least will not cut a menu in half. The parent block has to have a defined height or usegridbox.