From daf029fca2557fd1e6d756b5322acf2b9e7cc9cd Mon Sep 17 00:00:00 2001 From: Patrick Burtchaell Date: Sun, 19 Jul 2015 10:21:53 -0500 Subject: [PATCH] Show monitor when isVisible is true --- src/react/DebugPanel.js | 1 - src/react/LogMonitor.js | 86 +++++++++++++++++++++++------------------ 2 files changed, 49 insertions(+), 38 deletions(-) diff --git a/src/react/DebugPanel.js b/src/react/DebugPanel.js index 6dac89f4..a7306e95 100644 --- a/src/react/DebugPanel.js +++ b/src/react/DebugPanel.js @@ -17,7 +17,6 @@ export function getDefaultStyle(props) { opacity: 0.92, background: 'black', color: 'white', - padding: '1em', left: left ? 0 : undefined, right: right ? 0 : undefined, top: top ? 0 : undefined, diff --git a/src/react/LogMonitor.js b/src/react/LogMonitor.js index d265e09a..57ac1054 100644 --- a/src/react/LogMonitor.js +++ b/src/react/LogMonitor.js @@ -105,47 +105,59 @@ export default class LogMonitor { ); } - return ( -
-
- - Reset - -
- {elements} -
- {computedStates.length > 1 && - - Rollback - - } - {Object.keys(skippedActions).some(key => skippedActions[key]) && - - {' • '} - +
+
+ Press `ctl+h` to hide. +
+
+ - Sweep + Reset - - } - {computedStates.length > 1 && - +
+
+ {elements} +
+ {computedStates.length > 1 && + + Rollback + + } + {Object.keys(skippedActions).some(key => skippedActions[key]) && - {' • '} + {' • '} + + Sweep + - - Commit - - - } + } + {computedStates.length > 1 && + + + {' • '} + + + Commit + + + } +
-
- ); + ); + } + + return false; } }