Project

General

Profile

Actions

Defect #37390

closed

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

Added by Felix Schäfer over 2 years ago. Updated 9 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
UI
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
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 over 2 years ago

I have confirmed the issue.

Actions #2

Updated by Marius BĂLTEANU about 2 years ago

  • Status changed from New to Confirmed
Actions #3

Updated by Thomas Löber almost 2 years 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 almost 2 years ago

  • Target version set to Candidate for next minor release

I have confirmed that Improve_issue_header_text_selection.patch fixes the issue.

Actions #5

Updated by Go MAEDA 10 months ago

  • Target version changed from Candidate for next minor release to 6.0.0
Actions #6

Updated by Go MAEDA 9 months ago

  • Status changed from Confirmed to Closed
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed the patch. Thank you for your contribution.

Actions

Also available in: Atom PDF