This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-d7f67f4e-0b3b-45a1-b214-267d45cd7ab2 XWIKI-24637 Open

First and last column has padding

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-16fc2a61-979e-4743-8672-76afa139f528 Jonas Gernot Steinke created this issue on 28/Jul/26 15:27
 
Summary: First and last column has padding
Issue Type: cid:jira-generated-image-avatar-d7f67f4e-0b3b-45a1-b214-267d45cd7ab2 Bug
Affects Versions: 17.10.9
Assignee: Unassigned
Components: Rendering - Container Macro
Created: 28/Jul/26 15:27
Labels: css ui
Priority: cid:jira-generated-image-static-minor-9d7ca037-9be2-447f-9ba5-39683bba965f Minor
Reporter: Jonas Gernot Steinke
Description:

The following rules are defined in the columns.css (xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/main/webapp/resources/uicomponents/container/columns.css):

.container-columns .first-column {
  padding-left: 0;
}
.container-columns .last-column {
  padding-right: 0;
} 

So the first line shouldn't have any padding on the left, and the last line shouldn't have any on the right.

This bug appears to have been present since May 4, 2015, with the commit [XWIKI-10118] Generate column-specific css definitions instead of providing only one layout, and therefore does not appear to be critical. Here, the padding was added to a block that comes after the rules, making it a higher-priority rule, so the rules no longer have any effect.

The problem is solved when the padding is defined again in the .container-columns .column rule (line 19), rather than having to define it every time.