Extraneous whitespace when selecting and copying issue number on Chrome/Windows
On Chrome and Chrome-derived browsers on Windows, when selecting the issue number in the title an extra whitespace at the end of the issue number.
Our analysis shows this is due to the combination of the
class="inline-flex" and the newline
\n separating the
h2 title and the open/closed
One way to fix this would be to remove the
inline-flex css directive from the
h2 title, this breaks the layout though. Another way would be to remove the
\n between the
span elements. This might require some additional margin between the
span elements as the
\n causes a visible space between the 2 elements.
Updated by Thomas Löber about 1 year ago
That looks to me like a Chrome bug. Even when removing any whitespace between
</h2> and the badge
<span>, with the
inline-flex display style Chrome still selects the non-existing blank.
When using the
inline-block display style instead, selecting the issue number works fine.
I have attached a patch.