You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR was merged into the 6.4 branch.
Discussion
----------
[VarDumper] Fix blank strings display
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | Fixsymfony#57980
| License | MIT
Because `sf-dump-ellipsis` `span`s needed a `text-ellipsis`, their overflowing content was cut using `overflow: hidden`. As it required their inner display type to be `block`, this broke the alignment with the ellipsis’ “tail”. This was fixed by symfony#53147 by making every dump’s `span`s `inline-flex`.
This change made `sf-dump-ellipsis`’ `display`, `max-width` and `vertical-align` properties useless so this PR removes them, as well as a duplicated `overflow` one.
Now, `inline-flex` elements’ content becomes flex items, which caused symfony#57980 because
> if the entire sequence of [a flex item’s] text runs contains only white space […] it is […] not rendered
>
> https://www.w3.org/TR/css-flexbox-1/#flex-items
Instead of making every dump’s `span`s `inline-flex`, this PR targets a new `sf-dump-ellipsization` class added to `sf-dump-ellipsis`’ parents.
It also wraps ellipsis tails with elements bearing the `sf-dump-ellipsis-tail` class so that we can prevent them to shrink:
**Before**:

**After**:

Commits
-------
b0c2a59 [VarDumper] Fix blank strings display
0 commit comments