diff --git a/src/App.js b/src/App.js index 92e693d..bcbf3da 100644 --- a/src/App.js +++ b/src/App.js @@ -208,7 +208,7 @@ class App extends React.Component { images = imageMetadata.map((metadata) => { let {name, ratio, image, size} = metadata; let width = ELEMENT_WIDTH; - let height = (ratio * width).toFixed(); + let height = (width/ratio).toFixed(); let url = ROOT + image + '?t=' + timestamp; const clamp = (offsetX, offsetY) => { @@ -288,7 +288,7 @@ class App extends React.Component { onWheel={mouseScroll} className="frame" style={{backgroundImage: 'url("' + url + '")', ...style}}> -

{name}

+

{name}

) }); let time = moment.unix(timestamp);