From 2837bedf8db5b4a071cea2058a388cea7a1421ee Mon Sep 17 00:00:00 2001 From: Juanfran Date: Fri, 22 Aug 2014 08:48:05 +0200 Subject: [PATCH] fix home project list hight --- app/coffee/modules/projects/main.coffee | 1 + app/styles/modules/home-projects-list.scss | 12 ++++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/app/coffee/modules/projects/main.coffee b/app/coffee/modules/projects/main.coffee index 7bb9a7f2..b78314a7 100644 --- a/app/coffee/modules/projects/main.coffee +++ b/app/coffee/modules/projects/main.coffee @@ -74,6 +74,7 @@ ProjectsPaginationDirective = ($timeout) -> renderNextAndPrev = -> if projects.length pageSize = $el.find(".v-pagination-list").height() + console.log pageSize containerSize = container.height() if containerSize > pageSize visible(nextBtn) diff --git a/app/styles/modules/home-projects-list.scss b/app/styles/modules/home-projects-list.scss index b9be0dbd..303ae12f 100644 --- a/app/styles/modules/home-projects-list.scss +++ b/app/styles/modules/home-projects-list.scss @@ -60,14 +60,18 @@ .all-projects { @include table-flex-child(1, 285px, 0, 285px); background-color: rgba(0, 0, 0, .5); + display: flex; + flex-direction: column; margin-left: 1rem; + max-height: 396px; padding: 1rem; h1 { color: $whitish; + flex-shrink: 0; text-align: center; } .v-pagination-list { - height: 385px; + max-height: 221px; } ul { left: 0; @@ -97,16 +101,16 @@ } } } + .projects-pagination { + width: 100%; + } .create-project-button-wrapper { position: relative; width: 100%; } .button-green { color: $whitish; - left: 0; - position: absolute; text-align: center; - top: 0; width: 100%; &:hover { color: $whitish;