Fix NodeCard.jsx to add node--card specific condition

Created on 26 October 2023, 7 months ago

Problem/Motivation

node--card-common.html.twig and node--card.html.twig actually had another difference that I missed originally where in node--card.html.twig has content first

  <div{{ content_attributes.addClass('node__content') }}>
    {...}
  </div>
  <div class="read-more">
   {...}
  </div>

but in node--card-common.html.twig the div with "read-more" comes first.

  <div class="read-more">
   {...}
  </div>
<div{{ content_attributes.addClass('node__content') }}>
    {...}
  </div>

Steps to reproduce

Proposed resolution

Render the two elements in the correct order based on the view mode.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Umami JSX Demonstration Theme

Created by

πŸ‡ΊπŸ‡ΈUnited States hooroomoo

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

Comments & Activities

Production build 0.69.0 2024