diff --git a/src/components/GrampsJsImage.js b/src/components/GrampsJsImage.js index a81a2ef0..f8cb754b 100644 --- a/src/components/GrampsJsImage.js +++ b/src/components/GrampsJsImage.js @@ -9,9 +9,8 @@ import '@material/mwc-icon' import {sharedStyles} from '../SharedStyles.js' import {getMediaUrl, getThumbnailUrl, getThumbnailUrlCropped} from '../api.js' - class GrampsjsImg extends LitElement { - static get styles() { + static get styles () { return [ sharedStyles, css` @@ -29,20 +28,20 @@ class GrampsjsImg extends LitElement { } .file-placeholder { - width: 150px; - height: 150px; + width: 200px; + height: 200px; background-color: rgba(200, 200, 200, 0.5); color: rgba(0, 0, 0, 0.3); display: flex; align-items: center; justify-content: center; - --mdc-icon-size: 100px; + --mdc-icon-size: 130px; } ` ] } - static get properties() { + static get properties () { return { handle: {type: String}, size: {type: Number}, @@ -55,7 +54,7 @@ class GrampsjsImg extends LitElement { } } - constructor() { + constructor () { super() this.rect = [] this.circle = false @@ -65,8 +64,7 @@ class GrampsjsImg extends LitElement { this.border = false } - - _renderImageFull() { + _renderImageFull () { const height = this.displayHeight || '' return html` ` } - render() { + render () { + if (this.mime.startsWith('audio')) { + if (this.displayHeight > 0) { + return html` +