Comments (3)
You can prevent that by setting grid-column
of the tab panel to the amount of tabs you have:
<div class="w-[274px]">
<div role="tablist" class="tabs tabs-lifted">
<input type="radio" name="my_tabs_2" role="tab" class="tab" aria-label="Tab 1 is very long" />
<div role="tabpanel" class="tab-content bg-base-100 border-base-300 rounded-box p-6"></div>
<input type="radio" name="my_tabs_2" role="tab" class="tab" aria-label="Tab 2 is very very long" checked />
<div role="tabpanel" class="tab-content bg-base-100 border-base-300 rounded-box p-6 !col-span-2">
11112222333344445555666677
</div>
</div>
</div>
As for why it happens, the .tab-content
has:
grid-column-start: 1;
grid-column-end: span 9999;
At the small width of 274px, the content of the .tab-content
becomes significant and affects the width of these other 9997 grid column tracks that the .tab-content
spans, shrinking the grid column tracks that the tab labels reside.
from daisyui.
Thank you @ooker777
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.
from daisyui.
I ran into this issue as well
from daisyui.
Related Issues (20)
- bug: Broken transition on collapse when using Firefox (macOS) HOT 2
- bug: Modal z-index issue. HOT 11
- bug: Drawer causing overflow/scrollbar on right side of page on desktop HOT 11
- bug: long string in menu does not wrap in safari (with temp solution) HOT 1
- bug: Disabled inputs and buttons have inconsistent styling HOT 2
- bug: Sidebar-drawer component overlay does not overlay table pinned rows HOT 2
- docs: Anchors does not work for drawer page #drawer HOT 3
- bug: Can't style kbd when using prose HOT 2
- bug: the button is visible when the drawer is open , z-index doesn't work HOT 3
- Fallback colors do not work as expected HOT 3
- bug: closed modal still focusable HOT 2
- bug: The drop-down menu is blocked by other elements with (relative,filter, opacity) attributes such as HOT 3
- bug: Navbar dropdown doesn't close on the option click HOT 7
- docs: Is there any way to change the 'base' value at runtime? HOT 2
- bug: Glass Utility is not working in firefox HOT 6
- bug: Issue disabling background color HOT 6
- bug: countdown component value positioning error HOT 4
- docs: Theme Controller using a swap has incorrect HTML example HOT 2
- docs: I think there is a typo. HOT 1
- bug: Buttons in modals have unexpected borders when content behind them is focused HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from daisyui.