diff --git a/src/components/cap-case.js b/src/components/cap-case.js index 83735eb..0c0a750 100644 --- a/src/components/cap-case.js +++ b/src/components/cap-case.js @@ -114,7 +114,7 @@ export default class CapCase extends LitElement { .pdf-link { font-family: var(--font-sans-text); text-align: center; - margin: var(--spacing-50) auto -1em;; + margin: var(--spacing-50) auto -1em; } /**/ @@ -452,15 +452,20 @@ export default class CapCase extends LitElement { } } - getPDFLink(){ - if (this.caseMetadata.provenance.source === "Harvard"){ + getPDFLink() { + if (this.caseMetadata.provenance.source === "Harvard") { return html`
`; } - return nothing + return nothing; } removeLink = (a) => { diff --git a/src/components/cap-volume.js b/src/components/cap-volume.js index 6e36883..9d3e558 100644 --- a/src/components/cap-volume.js +++ b/src/components/cap-volume.js @@ -110,11 +110,15 @@ export default class CapVolume extends LitElement { ); } - getPDFLink(){ - if (this.casesData[0].provenance.source === "Harvard"){ - return html` View scanned PDF.`; + getPDFLink() { + if (this.casesData[0].provenance.source === "Harvard") { + return html` + View scanned PDF.`; } - return nothing + return nothing; } render() { @@ -137,8 +141,7 @@ export default class CapVolume extends LitElement {${this.reporterData.full_name} (${this.reporterData.start_year}-${this.reporterData.end_year}) - volume ${this.volume}. - ${this.getPDFLink()} + volume ${this.volume}. ${this.getPDFLink()}