Project

General

Profile

Actions

Defect #32754

closed

Fix missing arrow icon of collapse macro

Added by Popoki Tom (@cat_in_136) almost 5 years ago. Updated almost 5 years ago.

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

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

When {{collapse}} macro used in the wiki text, a small arrow icon should be displayed but actually is not displayed on redmine 4.1.0.

Steps to reproduce the issue

Just use {{collapse}} macro in the wiki text. For example,

{{collapse
foobar
}}

Arrow icon should be displayed. You can see right behavior here (because redmine.org does not use redmine 4.1.):

Show

Causes

This is obviously a degrade due to #31433. r18204 removes arrow icons from .collapsible.

Workaround

Add following CSS rules.

.wiki a.collapsible {padding-left: 12px; background: url(../images/arrow_down.png) no-repeat 0px 50%;}
.wiki a.collapsible.collapsed {background-image: url(../images/arrow_right.png);}

Note that: The icon path should be change to the absolute path if you add the snippet to your theme or the view_customize rule.

.wiki a.collapsible {padding-left: 12px; background: url(/images/arrow_down.png) no-repeat 0px 50%;}
.wiki a.collapsible.collapsed {background-image: url(/images/arrow_right.png);}

Files

Actions

Also available in: Atom PDF