Navigation Menu

Skip to content

Commit

Permalink
Do not use long format images inside nlg
Browse files Browse the repository at this point in the history
  • Loading branch information
nrobinaubertin committed Aug 2, 2019
1 parent d0e9d5e commit 252a855
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/message/file-grid.component.js
Expand Up @@ -44,7 +44,7 @@ export default class FileGrid extends Component {
let filePath = file.contentUrl ? "/files/" + file.contentUrl : null;
let url = filePath;
if (/image/.test(file.type) && file.type != "image/gif") {
// no limit in height for lon format images
// no limit in height for long format images
url = util.thumbnail(file.id, 1366, 999999);
}
if (miniature == true) {
Expand All @@ -53,6 +53,7 @@ export default class FileGrid extends Component {
<a
data-nlg={!this.props.inWriter}
data-origin={filePath}
data-src={util.thumbnail(file.id, 1366, 768)}
href={!this.props.inWriter && url}
class="rounded"
>
Expand Down

0 comments on commit 252a855

Please sign in to comment.