mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 09:53:15 +00:00
PHRAS-2863 #comment fix lightbox mobile pdf reading on thumbnail #time 2h
This commit is contained in:
@@ -319,3 +319,8 @@ a.active_choice {
|
|||||||
color: #313131;
|
color: #313131;
|
||||||
padding: 6px 0 6px 30px;
|
padding: 6px 0 6px 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.pdf-iframe {
|
||||||
|
background: #1a1a1a;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
}
|
||||||
|
@@ -694,6 +694,9 @@ button.confirm_report {
|
|||||||
iframe {
|
iframe {
|
||||||
min-height: 240px;
|
min-height: 240px;
|
||||||
width: auto;
|
width: auto;
|
||||||
|
.ui-mobile & {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -68,9 +68,12 @@
|
|||||||
<iframe width="100%" height="100%"
|
<iframe width="100%" height="100%"
|
||||||
src="{{ url('alchemy_embed_view', {url: url|trim, autoplay: autoplay|default('false') }) }}"
|
src="{{ url('alchemy_embed_view', {url: url|trim, autoplay: autoplay|default('false') }) }}"
|
||||||
frameborder="0" allowfullscreen></iframe>
|
frameborder="0" allowfullscreen></iframe>
|
||||||
|
{% elseif record_type == 'PDF' %}
|
||||||
|
<iframe src="{{ url('alchemy_embed_view', {url: url|trim }) }}" width="100%" scrolling="no" marginheight="0" frameborder="0" allowfullscreen="" height="0" class="pdf-iframe"></iframe>
|
||||||
{% else %}
|
{% else %}
|
||||||
<img style="max-height: 100%;max-width:100%" class="record record_image imgTips zoomable thumb"
|
<img style="max-height: 100%;max-width:100%" class="record record_image imgTips zoomable thumb"
|
||||||
oncontextMenu="return(false);"
|
oncontextMenu="return(false);"
|
||||||
src="{{ thumbnail.get_url()|trim }}" ondragstart="return false;"/>
|
src="{{ thumbnail.get_url()|trim }}" ondragstart="return false;"/>
|
||||||
|
{{ record_type }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
Reference in New Issue
Block a user