-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
.table-responsive not expanding to its parent #21577
Comments
I agree that table-responsive is broken if the content is less than the viewing device width. i.e. I found this issue because my table works well on my narrow iPhone, but on a tablet the table sits to the left of the screen. |
.table-responsive still works (in my case) as a wrapper, but I thought the whole goal was to change it to a modifier (which doesn't work in my experience). |
Thank you @cpeuterbaugh using table-responsive as a wrapper is a workaround.
|
Hit this issue right now, and it is really surprising for me to see a Removing it resolves the issue for me. I do not know the purpose or intention of this Thank you! Bootstrap rocks. |
Hmmm... found related pull requests: As far as I understood, the pull requests advocate that |
Yeah... after what I've seen I'm more confused than before... :-) ...anyway, usage of |
yeap i noticed too some weird stuff going on when using table-responsive. |
It appears that there is no media query governing the application of By default, the table should display as table, and at the smaller breakpoint, display as block. Applying the Like so:
|
#22217 doesn't fix the problem as much as it hides it. with the fix, you'll still have:
from where i sit, display block seems like a failed experiment here. i'd prefer a wrapper to this. |
Has this been resolved? I'm updated to 4.1.0 and it's still not working for me. |
I apologize for dragging a closed issue (#18612) back into the light, but I'm not sure the responsive table is behaving as it should.
As of v4.0.0-alpha.6, the problem seems to remain:
.table
class are 100% of the width of their parent.table
+.table-responsive
are only as wide as their content.table
that are also wrapped with<div class="table-responsive">
are %100 of the width of their parentHere's a fiddle:
https://jsfiddle.net/45tbox4f/
Example 2 and 3 are both scroll horizontally, but the non-wrapped table doesn't expand to its parent as @aimeos pointed out. I believe the example in the docs appears to work because its content is already quite wide(?)
(Tested on the latest Safari, Chrome OSX, FF OSX, Chrome Win and FF Win)
Please feel free to berate me if I got this wrong!
The text was updated successfully, but these errors were encountered: