Navigation Menu

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

Prevent grid with default cols from breaking when large pre is present #30049

Merged
merged 3 commits into from Jan 25, 2020

Conversation

JensLuyten
Copy link
Contributor

Closes #25410 (Codepen with bug present in issue)

Tested this in Codepen: https://codepen.io/jensluyten/pen/povxyPe.
The min-width: 0; on the .col actually prevents the col from taking up the entire row space.

This was only an issue on the default cols, because specified cols have a fixed flex-basis property that prevents this issue from happening.

@JensLuyten JensLuyten requested a review from a team as a code owner January 17, 2020 14:46
Copy link
Member

@MartijnCuppens MartijnCuppens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent, thanks!

@XhmikosR
Copy link
Member

XhmikosR commented Jan 22, 2020

Does this apply to v4 @MartijnCuppens? if so please add the label and project in the PRs you approve.

@MartijnCuppens MartijnCuppens added this to Inbox in v5 via automation Jan 22, 2020
@MartijnCuppens MartijnCuppens added this to Inbox in v4.5.0 via automation Jan 22, 2020
@XhmikosR XhmikosR requested review from ysds and mdo January 23, 2020 13:49
@XhmikosR XhmikosR merged commit 2e6c9f3 into twbs:master Jan 25, 2020
v5 automation moved this from Inbox to Shipped Jan 25, 2020
@XhmikosR XhmikosR moved this from Inbox to Cherry-picked in v4.5.0 Jan 28, 2020
@XhmikosR XhmikosR moved this from Cherry-picked to Shipped in v4.5.0 Feb 22, 2020
olsza pushed a commit to olsza/bootstrap that referenced this pull request Oct 3, 2020
@choldgraf
Copy link

choldgraf commented Feb 7, 2022

Did this one get re-introduced? I noticed this behavior on 4.6.1 and saw this section had been changed:

.col#{$infix},
.col#{$infix}-auto {
@extend %grid-column;
}

and didn't see any min-width here:

%grid-column {
position: relative;
width: 100%;
padding-right: $gutter / 2;
padding-left: $gutter / 2;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
v4.5.0
  
Shipped
v5
  
Shipped
Development

Successfully merging this pull request may close these issues.

Pre with horizontal scrollbar causes grid to stack
4 participants