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; } }