GeezerVison is showing github.com — CSS: Prevent spinner distortion in flex containers with multiline content by julien-deramond · Pull Request #41654 · twbs/bootstrap
Conversation
Description
This PR fixes #41578 by using the method suggested by @mdo at #41578 (comment), instead of updating the documentation to use our .flex-shrink-0 utility as proposed at #41578 (comment).
It can be tested directly in the docs with the following code:
<div class="d-flex align-items-center" style={{ width: '30px' }}>
<strong>A long string of text that will wrap to the next line...</strong>
<div class="spinner-border ms-auto" aria-hidden="true"></div>
</div>
We already used this kind of defensive CSS approach with this same flex-shrink: 0 CSS rule in #38955.
It can possibly be released in v5.3.8 as it should be non-breaking.
Type of changes
- Bug fix (non-breaking change which fixes an issue)
Checklist
- I have read the contributing guidelines
- My code follows the code style of the project (using
npm run lint)
- (N/A) My change introduces changes to the documentation
- (N/A) I have updated the documentation accordingly
- (N/A) I have added tests to cover my changes
- All new and existing tests passed
Live previews
For non-regression visual testing:
Related issues
Closes #41578
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
julien-deramond
changed the title
CSS: Fix spinner deformation in flex boxes when content is multiline
CSS: Prevent spinner distortion in flex containers with multiline content
Aug 10, 2025
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.
Pull Request Overview
This PR fixes spinner distortion in flex containers when paired with multiline content by adding a defensive CSS rule. The fix prevents spinners from being compressed when flex items don't have enough space.
- Adds
flex-shrink: 0 to both .spinner-border and .spinner-grow classes
- Prevents visual distortion when spinners are used alongside text content that wraps in flex containers
- Follows existing defensive CSS patterns used elsewhere in the codebase
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
julien-deramond reacted with laugh emoji
This was referenced Aug 27, 2025
This was referenced Sep 8, 2025
mergify Bot
added a commit
to ArcadeData/arcadedb
that referenced
this pull request
Sep 8, 2025
This was referenced Sep 14, 2025
This was referenced Dec 15, 2025
tae898
pushed a commit
to humemai/arcadedb-embedded-python
that referenced
this pull request
Jun 28, 2026
Reviewers
mdo
mdo approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
css
Sass sources or compiled CSS
v5
v5, the v5-dev branch
Projects
No open projects
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|