mirror of
https://github.com/filp/whoops.git
synced 2026-08-30 20:17:11 +00:00
Don't expand the header if only reveals white space
This commit is contained in:
@@ -43,7 +43,7 @@ header {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
header:hover {
|
||||
header.header-expand {
|
||||
max-height: 1000px;
|
||||
}
|
||||
|
||||
|
||||
@@ -21,7 +21,16 @@ Zepto(function($) {
|
||||
var $activeLine = $frameContainer.find('.frame.active');
|
||||
var $activeFrame = $container.find('.frame-code.active');
|
||||
var $ajaxEditors = $('.editor-link[data-ajax]');
|
||||
var headerHeight = $('header').height();
|
||||
var $header = $('header');
|
||||
|
||||
$header.on('mouseenter', function () {
|
||||
if ($header.find('.exception').height() >= 145) {
|
||||
$header.addClass('header-expand');
|
||||
}
|
||||
});
|
||||
$header.on('mouseleave', function () {
|
||||
$header.removeClass('header-expand');
|
||||
});
|
||||
|
||||
var highlightCurrentLine = function() {
|
||||
// Highlight the active and neighboring lines for this frame:
|
||||
|
||||
Reference in New Issue
Block a user