Problem/Motivation

For articles, an empty shaded rectangle is visible above the content:
Article display with empty, shaded area highlighted

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

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

Command icon 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

mandclu created an issue. See original summary.

mandclu’s picture

Issue summary: View changes

  • mandclu committed a7d40d34 on 1.0.x
    Issue #3535385 by mandclu: Nodes sometimes show an empty, shaded area...
mandclu’s picture

Issue summary: View changes
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.