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:

NOTE: in practice this is probably only really an issue for programmatically created accounts, since the "Display Name" field is required, and will cause the area to not be blank, if populated.
Steps to reproduce
After installing Event Platform and Event Horizon, create an article with the unedited root account.
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 <h3.user-compact__title>, <p.user-compact__work>, and <div.user-compact__bio>
- move the output for the entire <div.user-compact__right> section into a compact_right variable, applying the spaceless filter
- Only output the <div.user-compact__right> 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
| Comment | File | Size | Author |
|---|---|---|---|
| Screenshot 2025-07-11 at 2.57.58 AM.png | 99.91 KB | mandclu |
Issue fork event_horizon-3535385
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
mandclu commentedComment #5
mandclu commented