Skip to content
This repository was archived by the owner on Nov 1, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions css/public.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ body {
}

#content {
height: initial;
/* #content is the previous sibling of the footer, so its height must match
* the height of its child elements to prevent the footer from overlapping
* them. The server sets "height: 100%" for #content, so that value has to
* be overriden. */
height: auto;
min-height: calc(100vh - 103px); /* 45px(#controls) + 58px(footer) = 103px */
overflow: hidden;
}

/* height fix for ie11 */
Expand Down
13 changes: 12 additions & 1 deletion css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ body:after {

#controls {
width: 100%;
top: 45px;
}

.breadcrumbs-droppable-hover {
Expand Down Expand Up @@ -82,19 +81,31 @@ div.crumb.last a {
#content-wrapper {
position: relative;
height: calc(100vh - 45px); /* 45px for #controls element */
top: 45px;
padding: 0;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
-webkit-transition: background-color 1s linear;
transition: background-color 1s linear;
}

#app {
/* #app is the parent of #controls and #gallery, and #controls uses a sticky
* position, so the #app height must contain the full gallery for the
* controls to be stuck while scrolling. The server sets "height: 100%" for
* the app, so that value has to be overriden. */
height: auto;
}

#gallery.hascontrols {
position: relative;
overflow: hidden;
text-align: justify;
padding-bottom: 10px;
margin-bottom: 45px;

/* Override unneeded margin from server */
margin-top: 0;
}

#gallery .row {
Expand Down
2 changes: 1 addition & 1 deletion js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/* global OC, $, _, Gallery, SlideShow */
$(document).ready(function () {
"use strict";
$('#controls').insertBefore($('#content-wrapper'));
$('#controls').prependTo($('#app'));
Gallery.utility = new Gallery.Utility();
Gallery.view = new Gallery.View();
Gallery.token = Gallery.utility.getPublicToken();
Expand Down