Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/gallery.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Leppelsack <hendrik@leppelsack.de>2015-10-09 17:32:26 +0300
committerHendrik Leppelsack <hendrik@leppelsack.de>2015-10-09 17:32:26 +0300
commit8257c7fd2ef111a322bec7691a3826338475f475 (patch)
tree66555702b4d8c0f7923e0ee18616262ffc075f90
parenta04c40fecefa9eec4ea3da697ef56d79e55b5887 (diff)
adjust footer in public view
-rw-r--r--css/public.css2
-rw-r--r--js/app.js4
-rw-r--r--js/gallery.js8
-rw-r--r--templates/public.php6
4 files changed, 5 insertions, 15 deletions
diff --git a/css/public.css b/css/public.css
index de636c01..448b1f4d 100644
--- a/css/public.css
+++ b/css/public.css
@@ -6,6 +6,8 @@ body {
#content {
height: initial;
+ min-height: calc( 100vh - 120px );
+ overflow: hidden;
}
/* within #save */
diff --git a/js/app.js b/js/app.js
index 35ac14a2..4e7f431d 100644
--- a/js/app.js
+++ b/js/app.js
@@ -16,9 +16,6 @@ $(document).ready(function () {
Gallery.utility.showIeWarning(Gallery.ieVersion);
}
- // Needed to centre the spinner in some browsers
- Gallery.resetContentHeight();
-
// Get the config, the files and initialise the slideshow
Gallery.showLoading();
$.getJSON(Gallery.utility.buildGalleryUrl('config', '', {}))
@@ -69,7 +66,6 @@ $(document).ready(function () {
}
// This makes sure dropdowns will not be hidden after a window resize
if (windowHeight !== $(window).height()) {
- Gallery.resetContentHeight();
infoContentContainer.css('max-height',
$(window).height() - Gallery.browserToolbarHeight);
diff --git a/js/gallery.js b/js/gallery.js
index a1b2b676..266fc47c 100644
--- a/js/gallery.js
+++ b/js/gallery.js
@@ -306,14 +306,6 @@
},
/**
- * Resets the height of the content div so that the spinner can be centred
- */
- resetContentHeight: function () {
- // 200 is the space required for the footer and the browser toolbar
- $('#content').css("min-height", $(window).height() - 200);
- },
-
- /**
* Creates a new slideshow using the images found in the current folder
*
* @param {Array} images
diff --git a/templates/public.php b/templates/public.php
index 4d611c6c..4c88f501 100644
--- a/templates/public.php
+++ b/templates/public.php
@@ -153,10 +153,10 @@ style(
</div>
<div id="emptycontent" class="hidden"></div>
<div id="loading-indicator" class="loading"></div>
- <footer>
- <p class="info"><?php print_unescaped($theme->getLongFooter()); ?></p>
- </footer>
</div>
</div>
+ <footer>
+ <p class="info"><?php print_unescaped($theme->getLongFooter()); ?></p>
+ </footer>
</div>