Skip to content

Commit

Permalink
Merge pull request #24 from blockchain-certificates/fix/metadata-display
Browse files Browse the repository at this point in the history
fix(Metadata): handle text formatting
  • Loading branch information
Julien Fraichot authored Jan 9, 2019
2 parents e8244ae + d3ae1b3 commit 8a36cc1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/molecules/Metadata/Metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class Metadata extends LitElement {

return html`
<dt class='buv-c-metadata-list__title'>${title}</dt>
<dd class='buv-c-metadata-list__detail'>${value}</dd>
<dd class='buv-c-metadata-list__detail'><pre class='buv-c-metadata-list__detail-text'>${value}</pre></dd>
`;
});
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions src/components/molecules/Metadata/_components.metadata.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,12 @@
margin: 0 0 20px;
}

.buv-c-metadata-list__detail-text {
white-space: pre-wrap;
word-wrap: break-word;
font: inherit;
margin: 0;
}

@import '../../../shared-styles/utils.a11y';
@import '../../../shared-styles/utils.animations';

0 comments on commit 8a36cc1

Please sign in to comment.