Project

General

Profile

Actions

Defect #37390

open

Extraneous whitespace when selecting and copying issue number on Chrome/Windows

Added by Felix Schäfer about 1 year ago. Updated 8 months ago.

Status:
Confirmed
Priority:
Normal
Assignee:
-
Category:
UI
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

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 span.

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 h2 and span elements. This might require some additional margin between the h2 and span elements as the \n causes a visible space between the 2 elements.


Files

37390-confirmed.png (29.3 KB) 37390-confirmed.png Tomomi Yuzuriha, 2022-07-28 10:06
Improve_issue_header_text_selection.patch (1.61 KB) Improve_issue_header_text_selection.patch Thomas Löber, 2023-01-11 10:12
Actions #1

Updated by Tomomi Yuzuriha about 1 year ago

I have confirmed the issue.

Actions #2

Updated by Marius BALTEANU 12 months ago

  • Status changed from New to Confirmed
Actions #3

Updated by Thomas Löber 9 months 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.

Actions #4

Updated by Go MAEDA 8 months ago

  • Target version set to Candidate for next minor release

I have confirmed that Improve_issue_header_text_selection.patch fixes the issue.

Actions

Also available in: Atom PDF