Skip to content

material-v0.3.8

Choose a tag to compare

@github-actions github-actions released this 07 Oct 13:32
· 44 commits to main since this release

Two layout fixes found by running the catalog inside ChatGPT. Both changed what a generated UI looked like without anything in the spec being wrong.

  • Text keeps line breaks. A \n in content now starts a new line (white-space: pre-line); before, the browser folded it into a space, so a poem, an address or a short list arrived as one run-on line. Runs of spaces still collapse as before. The catalog's description of Text now tells the model that \n starts a new line.
  • Card without actions has no empty footer. The actions row is rendered only when the element's actions slot has children. Material gives that row a minimum height, so every card without buttons ended in a blank strip about 50 px tall.

Upgrading

npm i ngx-json-render-material@^0.3.8

No code changes are needed. Two things to check: Text content that contains \n now renders on several lines, and a Card with no actions slot no longer has a mat-card-actions element, which matters only if your styles or tests look for it. It works with ngx-json-render 0.7.x.

Full Changelog: material-v0.3.7...material-v0.3.8