aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-09-05 14:31:34 +0200
committerMario Vavti <mario@mariovavti.com>2018-09-05 14:31:34 +0200
commit4f82428a207d426a5cace7c3749655b391e6c156 (patch)
tree3f2ea82936dca6e1cca1296225673d0ba6bd3900 /view/tpl
parente494a76b33baae47aee671951cc4459a3f225c86 (diff)
downloadvolse-hubzilla-4f82428a207d426a5cace7c3749655b391e6c156.tar.gz
volse-hubzilla-4f82428a207d426a5cace7c3749655b391e6c156.tar.bz2
volse-hubzilla-4f82428a207d426a5cace7c3749655b391e6c156.zip
hide cover photo by default and show it only if conditions are met
Diffstat (limited to 'view/tpl')
-rwxr-xr-xview/tpl/cover_photo_widget.tpl3
1 files changed, 2 insertions, 1 deletions
diff --git a/view/tpl/cover_photo_widget.tpl b/view/tpl/cover_photo_widget.tpl
index ed708ffb5..2de3c74be 100755
--- a/view/tpl/cover_photo_widget.tpl
+++ b/view/tpl/cover_photo_widget.tpl
@@ -14,6 +14,7 @@
$(document).on('click mouseup keyup', slideUpCover);
if($(window).width() > 755) {
+ $('#cover-photo').removeClass('d-none');
datasrc2src('#cover-photo > img');
if(hide_cover) {
@@ -87,7 +88,7 @@
}
</script>
-<div id="cover-photo" title="{{$hovertitle}}">
+<div class="d-none" id="cover-photo" title="{{$hovertitle}}">
{{$photo_html}}
<div id="cover-photo-caption">
<h1>{{$title}}</h1>