Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Tab text wrap with large content #2678

Open
rreeves8 opened this issue Dec 19, 2023 · 4 comments
Open

bug: Tab text wrap with large content #2678

rreeves8 opened this issue Dec 19, 2023 · 4 comments

Comments

@rreeves8
Copy link

rreeves8 commented Dec 19, 2023

What version of daisyUI are you using?

^4.4.20

Which browsers are you seeing the problem on?

Chrome

Reproduction URL

https://play.tailwindcss.com/LhQq5wu6J4

Describe your issue

When tab content is large enough. The tab text overflows to the next line.

Screenshot 2023-12-19 at 8 38 51 AM Screenshot 2023-12-19 at 8 38 44 AM

Happens to me on NextJS and remix. Screen shot shows when tab content text overflows the input does as well

Copy link

Thank you @rreeves8 for reporting issues. It helps daisyUI a lot 💚
I'll be working on issues one by one. I will help with this one as soon as a I find a solution.
In the meantime providing more details and reproduction links would be helpful.

@danaildichev
Copy link

Have you tried adjusting the width of the tab?

Could it have something to do with: https://github.com/saadeghi/daisyui/blob/master/src/components/unstyled/tab.css#L14

@snopoke
Copy link

snopoke commented Mar 1, 2024

Same issue here. I was able to resolve it by adding grid-flow-col auto-cols-max to the tabs div:

<div class="tabs grid-flow-col auto-cols-max">

@axlgtm
Copy link

axlgtm commented Mar 17, 2024

You can add whitespace no wrap to the radio input. Its solved my problem

<input type="radio" name="my_tabs_2" role="tab" class="tab whitespace-nowrap" aria-label="Operational Utility" />
<div role="tabpanel" class="p-6 tab-content bg-base-100 border-base-300 rounded-box">Tab content 3</div>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants