Skip to content

Commit

Permalink
fix: show image in cover
Browse files Browse the repository at this point in the history
Fixes #273
  • Loading branch information
oscarlorentzon committed Feb 20, 2018
1 parent 0c7b310 commit ae8d8b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/component/CoverComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ export class CoverComponent extends Component<ICoverConfiguration> {

private _getCoverBackgroundVNode(conf: ICoverConfiguration): vd.VNode {
let url: string = conf.src != null ?
`url(${conf.src})` : Urls.thumbnail(conf.key, ImageSize.Size640);
conf.src : Urls.thumbnail(conf.key, ImageSize.Size640);

let properties: vd.createProperties = { style: { backgroundImage: url } };
let properties: vd.createProperties = { style: { backgroundImage: `url(${url})` } };

let children: vd.VNode[] = [];
if (conf.state === CoverState.Loading) {
Expand Down

0 comments on commit ae8d8b4

Please sign in to comment.