nuxt / ui

A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.
https://ui.nuxt.com
MIT License
3.9k stars 485 forks source link

When using the Tabs component, there is no line break on the mobile phone #1857

Closed a74559774 closed 2 months ago

a74559774 commented 3 months ago

Description

When using the Tabs component, there is no line break on the mobile phone ![Uploading 20240611142922.png…]()

benjamincanac commented 3 months ago

Can you elaborate? Your screenshot hasn't been uploaded. Would you mind providing a reproduction?

a74559774 commented 3 months ago

Can you elaborate? Your screenshot hasn't been uploaded. Would you mind providing a reproduction?

20240611142922

benjamincanac commented 3 months ago

So you're talking about the prose component Tabs from Nuxt UI Pro?

a74559774 commented 3 months ago

So you're talking about the prose component Tabs from Nuxt UI Pro?

Yes

benjamincanac commented 3 months ago

Are you in a fork of the @nuxt/ui documentation? If so, it's not related to the Tabs component but instead our custom ComponentExample component that misses an overflow-x-auto.

a74559774 commented 3 months ago

Are you in a fork of the @nuxt/ui documentation? If so, it's not related to the Tabs component but instead our custom ComponentExample component that misses an overflow-x-auto.

When I use the ContentRenderer component, how do I customize overflow-x-auto to the Tabs component?

{"type":"root","children":[

{"type":"element","tag":"tabs","props":{},"children":[

{"type":"element","tag": "div","props": {"label": "One"},"children":[{"type":"text","value":"One"}],
{"type":"element","tag": "div","props": {"label": "Two"},"children":[{"type":"text","value":"Two"}],
{"type":"element","tag": "div","props": {"label": "Three"},"children":[{"type":"text","value":"Three"}],
{"type":"element","tag": "div","props": {"label": "Four"},"children":[{"type":"text","value":"Four"}],
{"type":"element","tag": "div","props": {"label": "Five"},"children":[{"type":"text","value":"Five"}],
{"type":"element","tag": "div","props": {"label": "Six"},"children":[{"type":"text","value":"Six"}],
{"type":"element","tag": "div","props": {"label": "Seven"},"children":[{"type":"text","value":"Seven"}],

]}

],"toc":{}}