mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Fix #883 Resize img accoring to device orientation
This commit is contained in:
@@ -107,7 +107,6 @@
|
||||
{menu: "false",flashvars: "playerID=2&autostart=yes&noinfo=yes&animation=no&remaining=yes&soundFile={{thumbnail.get_url()}}", movie: "/include/jslibs/audio-player/player.swf", allowFullScreen :"true",wmode: "transparent"}, false);</script>
|
||||
{% else %}
|
||||
<img class="record record_image imgTips zoomable thumb" oncontextMenu="return(false);"
|
||||
style="width:100%;"
|
||||
src="{{thumbnail.get_url()}}" ondragstart="return false;">
|
||||
<input type="hidden" name="width" value="{{thumbnail.get_width()}}"/>
|
||||
<input type="hidden" name="height" value="{{thumbnail.get_height()}}"/>
|
||||
|
||||
@@ -48,4 +48,24 @@ a.active_choice{
|
||||
}
|
||||
.valid_choice.disagree{
|
||||
background-image: url(/skins/icons/delete.png);
|
||||
}
|
||||
}
|
||||
|
||||
.thumb_wrapper {
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
@media screen and (orientation: landscape) {
|
||||
|
||||
.thumb_wrapper img {
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@media screen and (orientation: portrait) {
|
||||
|
||||
.thumb_wrapper img {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user