Repository navigation
material-v0.3.8
·
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.
Textkeeps line breaks. A\nincontentnow 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 ofTextnow tells the model that\nstarts a new line.Cardwithout actions has no empty footer. Theactionsrow is rendered only when the element'sactionsslot 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.8No 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