-
Notifications
You must be signed in to change notification settings - Fork 56
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
fix(table): row selection: space after checkbox incorrect #1272
Conversation
✅ Deploy Preview for boosted ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of context but, did you try changing the html structure ? (without the div.form-check
for example)
d76b1d5
to
2ea9386
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
There's no way here to have 40px x 40px? It seems to be like that in the DSM. |
With
|
After digging a bit more inside tables, it appears that the columns take as much place as they can. This is why we have such weird sizes (you can try resize your window and you won't have the same size). Here is a workaround to have exactly 40px at each breakpoint (on first column): <table class="table table-sm table-hover table-responsive">
<colgroup>
<col style="2.5rem">
</colgroup>
<thead>
</thead>
<tbody>
</tbody>
</table> Here the 2.5rem is arbitrary, I didn't check if another value could be better here |
… to 1rem (sufficient to prevent second column to move to the right)
3cea7ee
to
94a36b0
Compare
… to 1rem (sufficient to prevent second column to move to the right)
Louis-Maxime's solution seems good and well supported by all browsers, so I added colgroup to fix first column width. |
@julien-deramond I'm going to update migration guide too ;-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Just a suggestion to improve the migration guide note.
…ve migration guide
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Add a negative right margin to adjust space in that case
Closes #1236