Project

General

Profile

Actions

Defect #44791

closed

Code block copy button overlapping a right-floating TOC

Defect #44791: Code block copy button overlapping a right-floating TOC

Added by Andrea Ludin 12 days ago. Updated 8 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Text formatting
Target version:
Resolution:
Fixed
Affected version:

Description

If the table of contents for a wiki page is located on the right-hand side, the entries in the table of contents are not links if they appear at the same level as the “pre” tag.

Presumably, the “Copy” button for the “pre” tag within the table of contents is causing the problem.


Files

Updated by Go MAEDA 12 days ago Actions #1

The attached patch fixes this issue.

The copy button is positioned relative to div.pre-wrapper, which wraps the <pre> element. When the table of contents floats on the right, the <pre> element becomes narrower, but div.pre-wrapper does not. As a result, the copy button is displayed over the TOC, and div.pre-wrapper covers the TOC links so that they cannot be clicked.

The patch sets display: flow-root on div.pre-wrapper so that it also becomes narrower.

Before:

After:

Updated by Andrea Ludin 11 days ago Actions #2

Perfect. That was fast!

The patch solves the issue on our two Redmine instances (7.03), one with the default theme, one with moonstone-2.1.0.

Updated by Go MAEDA 9 days ago Actions #3

  • Subject changed from Wiki TOC on right side links missing on pre-tag height to Code block copy button overlapping a right-floating TOC
  • Status changed from New to Resolved
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed the patch in r25482. Thank you for reporting this issue.

Updated by Go MAEDA 8 days ago Actions #4

  • Status changed from Resolved to Closed

Merged the fix into the stable branches in r25495 and r25496.

Actions

Also available in: PDF Atom