From a37f3c376fd3b40d8f4430b14af2acb32d68bf7a Mon Sep 17 00:00:00 2001 From: Patrick Kalita Date: Wed, 12 Apr 2023 16:28:14 -0700 Subject: [PATCH] Apply automatic formatting --- lib/DataHarmonizer.js | 5 ++++- lib/HelpSidebar.css | 42 +++++++++++++++++++++--------------------- lib/HelpSidebar.js | 2 +- 3 files changed, 26 insertions(+), 23 deletions(-) diff --git a/lib/DataHarmonizer.js b/lib/DataHarmonizer.js index 7415af77..aee7cffe 100644 --- a/lib/DataHarmonizer.js +++ b/lib/DataHarmonizer.js @@ -69,7 +69,10 @@ class DataHarmonizer { this.self = this; // Use help sidebar by default unless turned off by client - if (options.includeHelpSidebar === undefined || options.includeHelpSidebar) { + if ( + options.includeHelpSidebar === undefined || + options.includeHelpSidebar + ) { this.helpSidebar = new HelpSidebar(this.root, { onToggle: () => this.hot.render(), }); diff --git a/lib/HelpSidebar.css b/lib/HelpSidebar.css index 4c2dc910..b1acd021 100644 --- a/lib/HelpSidebar.css +++ b/lib/HelpSidebar.css @@ -1,31 +1,31 @@ .help-sidebar { - position: absolute; - top: 0; - bottom: 0; - background-color: white; - transition-property: right; - transition-timing-function: ease; - border-left: 1px solid #ddd; + position: absolute; + top: 0; + bottom: 0; + background-color: white; + transition-property: right; + transition-timing-function: ease; + border-left: 1px solid #ddd; } .help-sidebar__toggler { - position: absolute; - top: 0; - transform: translateX(-100%); - z-index: 200; - border: 1px solid #ddd; - border-right-width: 0; - background-color: white; + position: absolute; + top: 0; + transform: translateX(-100%); + z-index: 200; + border: 1px solid #ddd; + border-right-width: 0; + background-color: white; } .help-sidebar__content { - height: 100%; - overflow-x: hidden; - overflow-y: auto; - margin: 8px + height: 100%; + overflow-x: hidden; + overflow-y: auto; + margin: 8px; } .help-sidebar__placeholder { - color: #808080; - font-style: italic; -} \ No newline at end of file + color: #808080; + font-style: italic; +} diff --git a/lib/HelpSidebar.js b/lib/HelpSidebar.js index c079324c..a8c13015 100644 --- a/lib/HelpSidebar.js +++ b/lib/HelpSidebar.js @@ -1,5 +1,5 @@ import $ from 'jquery'; -import './HelpSidebar.css' +import './HelpSidebar.css'; const DEFAULT_OPTIONS = { width: 300,