Regression Fix: Overflow in column scroll. Updated ugly hack.
authorTobias Johansson <tobias@tobias-johansson.se>
Wed, 13 Feb 2019 08:19:28 +0000 (09:19 +0100)
committerTobias Johansson <tobias@tobias-johansson.se>
Wed, 13 Feb 2019 08:19:28 +0000 (09:19 +0100)
src/templates/svnman/layout.pug

index 7ac1660..9431345 100644 (file)
@@ -71,8 +71,11 @@ html(lang="en")
                                {% endif %}
                        });
 
                                {% endif %}
                        });
 
+                       // Ugly hack to make scrollable column not overflow
+                       // TODO: Remove this and write proper CSS!!
+                       let headerHeight = 85;
                        $(window).on('load resize', function(){
                        $(window).on('load resize', function(){
-                               var window_height = $(window).height() - 55; // header is 55px
+                               var window_height = $(window).height() - headerHeight;
                                $('.col-scrollable').css({'height': window_height});
                        });
 
                                $('.col-scrollable').css({'height': window_height});
                        });