Ensure that the footer appears properly on the repo pages
This commit is contained in:
		
							parent
							
								
									5f9da10a36
								
							
						
					
					
						commit
						6692fdf41c
					
				
					 4 changed files with 14 additions and 7 deletions
				
			
		|  | @ -32,6 +32,13 @@ html, body { | |||
|   overflow: hidden; | ||||
| } | ||||
| 
 | ||||
| .footer-container.fixed { | ||||
|   position: fixed; | ||||
|   bottom: 16px; | ||||
|   left: 0px; | ||||
|   right: 0px; | ||||
| } | ||||
| 
 | ||||
| .button-hidden { | ||||
|   visibility: hidden; | ||||
| } | ||||
|  |  | |||
|  | @ -428,9 +428,9 @@ quayApp = angular.module('quay', ['ngRoute', 'restangular', 'angularMoment', 'an | |||
|     // WARNING WARNING WARNING
 | ||||
|     $routeProvider. | ||||
|       when('/repository/:namespace/:name', {templateUrl: '/static/partials/view-repo.html', controller: RepoCtrl, | ||||
|                                             hideFooter: true, reloadOnSearch: false}). | ||||
|                                             fixFooter: true, reloadOnSearch: false}). | ||||
|       when('/repository/:namespace/:name/tag/:tag', {templateUrl: '/static/partials/view-repo.html', controller: RepoCtrl, | ||||
|                                                      hideFooter: true}). | ||||
|                                                      fixFooter: true}). | ||||
|       when('/repository/:namespace/:name/image/:image', {templateUrl: '/static/partials/image-view.html', controller: ImageViewCtrl}). | ||||
|       when('/repository/:namespace/:name/admin', {templateUrl: '/static/partials/repo-admin.html', controller:RepoAdminCtrl}). | ||||
|       when('/repository/', {title: 'Repositories', description: 'Public and private docker repositories list', | ||||
|  | @ -1216,7 +1216,7 @@ quayApp.run(['$location', '$rootScope', 'Restangular', 'UserService', '$http', | |||
|       $rootScope.description = 'Hosted private docker repositories. Includes full user management and history. Free for public repositories.'; | ||||
|     } | ||||
| 
 | ||||
|     $rootScope.hideFooter = !!current.$$route.hideFooter; | ||||
|     $rootScope.fixFooter = !!current.$$route.fixFooter; | ||||
|   }); | ||||
| 
 | ||||
|   var initallyChecked = false; | ||||
|  |  | |||
|  | @ -86,7 +86,7 @@ ImageHistoryTree.prototype.updateDimensions_ = function() { | |||
|     $('#' + container).removeOverscroll(); | ||||
|     var viewportHeight = $(window).height(); | ||||
|     var boundingBox = document.getElementById(container).getBoundingClientRect(); | ||||
|     document.getElementById(container).style.maxHeight = (viewportHeight - boundingBox.top - 30) + 'px'; | ||||
|     document.getElementById(container).style.maxHeight = (viewportHeight - boundingBox.top - 110) + 'px'; | ||||
|     $('#' + container).overscroll(); | ||||
| 
 | ||||
|     // Update the tree.
 | ||||
|  |  | |||
		Reference in a new issue