Selaa lähdekoodia

Update setting editor's use of inspector.

Afshin Darian 6 vuotta sitten
vanhempi
commit
c25baef70c

+ 1 - 1
packages/inspector/src/handler.ts

@@ -31,7 +31,7 @@ export class InspectionHandler implements IDisposable, IInspector.IInspectable {
    * A signal emitted when the inspector should clear all items.
    */
   get cleared(): ISignal<InspectionHandler, void> {
-    return this.cleared;
+    return this._cleared;
   }
 
   /**

+ 1 - 6
packages/settingeditor/src/inspector.ts

@@ -34,12 +34,7 @@ export function createInspector(
       })
   });
 
-  inspector.add({
-    className: 'jp-SettingsDebug',
-    name: 'Debug',
-    rank: 0,
-    type: 'hints'
-  });
+  inspector.addClass('jp-SettingsDebug');
   inspector.source = handler;
   handler.editor = editor.source;
 

+ 3 - 2
packages/settingeditor/style/settingeditor.css

@@ -170,12 +170,13 @@
 
 #setting-editor .jp-SettingsRawEditor .jp-Inspector {
   border-top: 2px solid var(--jp-layout-color2);
+  min-height: var(--jp-private-settingeditor-debug-height);
   max-height: var(--jp-private-settingeditor-debug-height);
 }
 
 #setting-editor
   .jp-SettingsRawEditor
-  .jp-InspectorItem.jp-SettingsDebug
+  .jp-Inspector.jp-SettingsDebug
   .jp-RenderedHTMLCommon {
   padding: 2px 5px 2px 0;
   width: 100%;
@@ -183,7 +184,7 @@
 
 #setting-editor
   .jp-SettingsRawEditor
-  .jp-InspectorItem.jp-SettingsDebug
+  .jp-Inspector.jp-SettingsDebug
   .jp-RenderedHTMLCommon
   p {
   text-align: right;