16
$\begingroup$

With the recent update, MathJax on some titles on the homepage span several lines like this:

enter image description here

or this:

enter image description here

This makes things a bit tricky to read. Does this happen to anyone else?

$\endgroup$
6
  • 4
    $\begingroup$ @Xander while they are likely related, it seems this post is about the issue on the frontpage. A fuller screenshot of my own: i.stack.imgur.com/t65TJ.png Relevant answer on the meta.SE update post: meta.stackexchange.com/a/375474/288791 $\endgroup$ Jan 25, 2022 at 3:43
  • 2
    $\begingroup$ I noticed something similar in the Review Queues, with an attendant difficulty in parsing titles. $\endgroup$
    – hardmath
    Jan 25, 2022 at 13:22
  • 4
    $\begingroup$ It looks like the new layout has class s-post-summary--content-title set to have display: inline-block, which is a shrink-wrap container. That means MathJax will not know the maximum width that can be used but instead uses the width of the shrunk container and breaks the math accordingly. If this were changed to display: block I think the display would be unaffected, but MathJax would get the correct width and so line breaks would work properly. If you use the developer tools to change that CSS by hand and then run MathJax.Hub.Reprocess() in the console, it works for me. $\endgroup$ Jan 25, 2022 at 21:32
  • 1
    $\begingroup$ This is reported here. And some seconds ago the following message was posted: "Its a tad hard to test this live, but I believe this has now been fixed. Thanks to @DavideCervone for the assist. We've set the display property of the title link to block as suggested. – Ben Kelly, Staff, Mod" $\endgroup$
    – miracle173
    Jan 27, 2022 at 16:07
  • $\begingroup$ @DavideCervone MathJax is again not displaying correctly on the main Activity page (Summary), but it's not clear what has changed. $\endgroup$ Mar 8, 2022 at 17:05
  • $\begingroup$ @RandomVariable, see my response to another related post. $\endgroup$ Mar 9, 2022 at 1:33

1 Answer 1

7
$\begingroup$

This should now be fixed. We've set the title link to display: block as suggested by @DavideCervone.

$\endgroup$
2
  • $\begingroup$ Thank's, it seems to work now. $\endgroup$
    – miracle173
    Jan 27, 2022 at 16:09
  • $\begingroup$ This is still an issue on the "Summary" tab of the Activity page. Titles under "Answers" and "Questions" with MathJax in them often get broken up in strange ways and displayed over multiple lines. $\endgroup$ Feb 18 at 1:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .