Project

General

Profile

Actions

Defect #44791

open

Wiki TOC on right side links missing on pre-tag height

Defect #44791: Wiki TOC on right side links missing on pre-tag height

Added by Andrea Ludin 2 days ago. Updated 1 day ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Text formatting
Target version:
Resolution:
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 1 day 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 1 day 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.

Actions

Also available in: PDF Atom