Gitlab CSE Unil

Commit 6c093efb authored by Julien Furrer's avatar Julien Furrer
Browse files

Fixed thumb size on 4k screen

parent 24ee7ca2
...@@ -208,7 +208,8 @@ define([ ...@@ -208,7 +208,8 @@ define([
function _getThumbnail(options) { function _getThumbnail(options) {
options.thumbnailSize = parseInt(config.thumbnailSize, 10) || 150; var pr = window.devicePixelRatio || 1;
options.thumbnailSize = (parseInt(config.thumbnailSize, 10) || 150) / pr;
return _exportPng(null, options); return _exportPng(null, options);
} }
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
<html lang="fr"> <html lang="fr">
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width"/>
<title>{% block page_title %}ADIM{% endblock %}</title> <title>{% block page_title %}ADIM{% endblock %}</title>
<link rel="stylesheet" type="text/css" media="all" href="{% static "css/libs.css" %}" /> <link rel="stylesheet" type="text/css" media="all" href="{% static "css/libs.css" %}" />
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment