Skip to content
Snippets Groups Projects
Commit 005d201c authored by srosse's avatar srosse
Browse files

OO-1843: prevent the preview images in "My courses" to be scaled by browsers

parent 7320dcc4
No related branches found
No related tags found
No related merge requests found
...@@ -60,7 +60,7 @@ public class RepositoryEntryImageMapper implements Mapper { ...@@ -60,7 +60,7 @@ public class RepositoryEntryImageMapper implements Mapper {
MetaInfo info = ((MetaTagged) image).getMetaInfo(); MetaInfo info = ((MetaTagged) image).getMetaInfo();
if(info != null) { if(info != null) {
//121 is needed to fill the div //121 is needed to fill the div
VFSLeaf thumbnail = info.getThumbnail(180, 121, true); VFSLeaf thumbnail = info.getThumbnail(180, 120, true);
if(thumbnail != null) { if(thumbnail != null) {
resource = new VFSMediaResource(thumbnail); resource = new VFSMediaResource(thumbnail);
} }
......
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
margin-bottom: floor($line-height-computed / 2); margin-bottom: floor($line-height-computed / 2);
.o_visual { .o_visual {
box-sizing: content-box;
border-right: 1px solid $o-coursesite-rowelem-border; border-right: 1px solid $o-coursesite-rowelem-border;
} }
......
This diff is collapsed.
source diff could not be displayed: it is too large. Options to address this: view the blob.
This diff is collapsed.
source diff could not be displayed: it is too large. Options to address this: view the blob.
source diff could not be displayed: it is too large. Options to address this: view the blob.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment