-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[VarDumper] Fix blank strings display #59390
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
Conversation
7b693f2
to
4a43bad
Compare
"<pre class=sf-dump id=sf-dump data-indent-pad=\" \"><span class=sf-dump-num>123</span>\n</pre><script>Sfdump(\"sf-dump\")</script>\n" | ||
."<pre class=sf-dump id=sf-dump data-indent-pad=\" \"><span class=sf-dump-num>456</span>\n</pre><script>Sfdump(\"sf-dump\")</script>\n", | ||
"<pre class=sf-dump id=sf-dump data-indent-pad=\" \"><span class=\"sf-dump-num\">123</span>\n</pre><script>Sfdump(\"sf-dump\")</script>\n" | ||
."<pre class=sf-dump id=sf-dump data-indent-pad=\" \"><span class=\"sf-dump-num\">456</span>\n</pre><script>Sfdump(\"sf-dump\")</script>\n", |
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.
this change breaks low-deps
better preserve the previous output when possible to not have to change version constraints
doable?
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.
I think I could quote the class
attribute only if there are two indeed (would feel weird though 😅)
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.
that'd help fix tests (they're still red :) )
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.
Wouldn’t high and low-deps tests eventually pass when the code is released?
Anyways, I limited the changes to ellipsization so that other components’ tests are not impacted 🟢
8133832
to
59d0af8
Compare
59d0af8
to
b0c2a59
Compare
Thank you @MatTheCat. |
Because
sf-dump-ellipsis
span
s needed atext-ellipsis
, their overflowing content was cut usingoverflow: hidden
. As it required their inner display type to beblock
, this broke the alignment with the ellipsis’ “tail”. This was fixed by #53147 by making every dump’sspan
sinline-flex
.This change made
sf-dump-ellipsis
’display
,max-width
andvertical-align
properties useless so this PR removes them, as well as a duplicatedoverflow
one.Now,
inline-flex
elements’ content becomes flex items, which caused #57980 becauseInstead of making every dump’s
span
sinline-flex
, this PR targets a newsf-dump-ellipsization
class added tosf-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: