PHRAS-2863 #comment fix lightbox mobile pdf reading on thumbnail #time 2h

This commit is contained in:
Harrys Ravalomanana
2019-12-27 15:09:03 +04:00
parent 6ac8d5b904
commit 9e1fa5413a
3 changed files with 11 additions and 0 deletions

View File

@@ -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;
}

View File

@@ -694,6 +694,9 @@ button.confirm_report {
iframe { iframe {
min-height: 240px; min-height: 240px;
width: auto; width: auto;
.ui-mobile & {
width: 100%;
}
} }
} }

View File

@@ -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 %}