Nodes sometimes show an empty, shaded area above the content

Created on 11 July 2025, 3 days ago

Problem/Motivation

For articles, an empty shaded rectangle is visible above the content:

Looking at the page source, we can see a set of empty markup in there:

Steps to reproduce

After installing Event Platform and Event Horizon, create an article.

Proposed resolution

The markup seems to come from templates/user/user--compact.html.twig, so this template should be updated in a few ways:
- add conditions around the output of the div wrappers for

,

, and

- move the output for the entire
section into a compact_right variable, applying the spaceless filter
- Only output the
wrapper if compact_right is not empty
- Only output the article wrapper and attach the library if either compact_right or content.user_picture.0 are not empty
🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇨🇦Canada mandclu

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024