mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 09:53:15 +00:00
Fix #1419 Fix resize issue on mobile view
This commit is contained in:
@@ -8,6 +8,31 @@
|
||||
<link rel="stylesheet" href="{{ path('minifier', { 'f' : 'include/jslibs/jquery.mobile-1.2.1/jquery.mobile-1.2.1.css' }) }}" />
|
||||
<script src="{{ path('minifier', { 'f' : 'assets/jquery/jquery.js' }) }}"></script>
|
||||
<script src="{{ path('minifier', { 'f' : 'include/jslibs/jquery.mobile-1.2.1/jquery.mobile-1.2.1.js' }) }}"></script>
|
||||
<style type="text/css">
|
||||
html,body, div[data-role ="page"] {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
.ui-content{
|
||||
height: 85%;
|
||||
width: 100%;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
display:table;
|
||||
}
|
||||
|
||||
#map {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
padding: 0px;
|
||||
display:table-cell;
|
||||
vertical-align: middle;
|
||||
text-align: center
|
||||
}
|
||||
</style>
|
||||
{% block stylesheet %}{% endblock %}
|
||||
{% block icon %}{% endblock %}
|
||||
{% block javascript %}{% endblock %}
|
||||
|
@@ -71,12 +71,12 @@
|
||||
{% endmacro %}
|
||||
|
||||
{% macro format100percent(thumbnail, extraclass)%}
|
||||
{% set record_type = thumbnail.get_type() %}
|
||||
<div style="width:100%" class="thumb_wrapper {{extraclass|default('')}}">
|
||||
{% set record_type = thumbnail.get_type() %}
|
||||
<div id="map">
|
||||
{% if record_type == 'VIDEO_MP4' or record_type == 'VIDEO_FLV' %}
|
||||
{% set random = thumbnail.get_random() %}
|
||||
<div class="record record_video imgTips" style="100%;">
|
||||
<video type="video/mp4" controls="controls" style="width:100%;" autoplay="autoplay">
|
||||
<div class="record record_video imgTips">
|
||||
<video type="video/mp4" controls="controls" style="height:100%;" autoplay="autoplay">
|
||||
<source src="{{thumbnail.get_url()}}" type="video/mp4"></source>
|
||||
</video>
|
||||
</div>
|
||||
@@ -84,8 +84,6 @@
|
||||
{% set random = thumbnail.get_random() %}
|
||||
<div class="record record_document imgTips" style="width:100%;">
|
||||
<div id="preview_{{thumbnail.get_base_id()}}_{{thumbnail.get_record_id()}}_{{random}}" class="PNB" style=""></div>
|
||||
<input type="hidden" name="width" value="{{thumbnail.get_width()}}"/>
|
||||
<input type="hidden" name="height" value="{{thumbnail.get_height()}}"/>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
swfobject.embedSWF("/include/FlexPaper_flash/FlexPaperViewer.swf",
|
||||
@@ -97,8 +95,6 @@
|
||||
{% set random = thumbnail.get_random() %}
|
||||
<div class="record record_audio audioTips" style="width:100%;">
|
||||
<div id="preview_{{thumbnail.get_base_id()}}_{{thumbnail.get_record_id()}}_{{random}}" class="PNB" style=""></div>
|
||||
<input type="hidden" name="width" value="{{thumbnail.get_width()}}"/>
|
||||
<input type="hidden" name="height" value="{{thumbnail.get_height()}}"/>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
swfobject.embedSWF("/include/jslibs/audio-player/player.swf",
|
||||
@@ -106,12 +102,8 @@
|
||||
"{{thumbnail.get_width()}}", "{{thumbnail.get_height()}}", "9.0.0", false, false,
|
||||
{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);"
|
||||
<img style="height:100%;" class="record record_image imgTips zoomable thumb" oncontextMenu="return(false);"
|
||||
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()}}"/>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
{% endmacro %}
|
||||
|
Reference in New Issue
Block a user