From 6ee5370a95d42348c8b66854e390bbc2397d54d2 Mon Sep 17 00:00:00 2001 From: vrana Date: Wed, 3 Oct 2012 13:24:34 -0700 Subject: [PATCH] Fix height of DarkConsole request log Summary: When I have displayed DarkConsole and write a comment it keeps scrolling because new AJAX requests pop up. Test Plan: Displayed it, issued couple of AJAX requests. Reviewers: btrahan, epriestley Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T1316 Differential Revision: https://secure.phabricator.com/D3605 --- src/__celerity_resource_map__.php | 2 +- src/aphront/console/DarkConsoleCore.php | 2 +- webroot/rsrc/css/aphront/dark-console.css | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/__celerity_resource_map__.php b/src/__celerity_resource_map__.php index 688a54ff2a..d6787317ae 100644 --- a/src/__celerity_resource_map__.php +++ b/src/__celerity_resource_map__.php @@ -521,7 +521,7 @@ celerity_register_resource_map(array( ), 'aphront-dark-console-css' => array( - 'uri' => '/res/e0f8a354/rsrc/css/aphront/dark-console.css', + 'uri' => '/res/1adffcf3/rsrc/css/aphront/dark-console.css', 'type' => 'css', 'requires' => array( diff --git a/src/aphront/console/DarkConsoleCore.php b/src/aphront/console/DarkConsoleCore.php index 2de892e03c..db08ec6074 100644 --- a/src/aphront/console/DarkConsoleCore.php +++ b/src/aphront/console/DarkConsoleCore.php @@ -202,7 +202,7 @@ final class DarkConsoleCore { javelin_render_tag( 'div', array( - 'class' => 'dark-console-panel', + 'class' => 'dark-console-panel dark-console-panel-RequestLog', ), $request_table). ''. diff --git a/webroot/rsrc/css/aphront/dark-console.css b/webroot/rsrc/css/aphront/dark-console.css index bbf903af28..91d6cbe802 100644 --- a/webroot/rsrc/css/aphront/dark-console.css +++ b/webroot/rsrc/css/aphront/dark-console.css @@ -157,6 +157,11 @@ a.dark-console-tab-selected { border-bottom: 2px solid #000000; } +.dark-console-panel-RequestLog { + max-height: 10em; + overflow: auto; +} + .dark-console-panel-request-log-separator { background-color: #e8e8e8; border-bottom: 1px solid #b7b7b7;