diff --git a/src/components/CreateNewModal.jsx b/src/components/CreateNewModal.jsx index 57459cd..4d8009f 100644 --- a/src/components/CreateNewModal.jsx +++ b/src/components/CreateNewModal.jsx @@ -31,7 +31,7 @@ export class CreateNewModal extends Component {
@@ -236,18 +230,15 @@ export class SidePane extends Component { onDragOver={this.dragOverHandler.bind(this)} onDrop={this.dropHandler.bind(this)} > -
+
Files -
+
@@ -256,10 +247,7 @@ export class SidePane extends Component { class="btn btn--dark" onClick={this.addFolderButtonClickHandler.bind(this)} > - + diff --git a/src/components/Switch.jsx b/src/components/Switch.jsx index dea1545..475d097 100644 --- a/src/components/Switch.jsx +++ b/src/components/Switch.jsx @@ -3,7 +3,7 @@ import { h } from 'preact'; export default function Switch({ checked, onChange, - labels, + labels = [], children, showBothLabels }) { diff --git a/src/style.css b/src/style.css index 5e975e3..0dee3e4 100644 --- a/src/style.css +++ b/src/style.css @@ -87,6 +87,9 @@ button { .flex { display: flex; } +.d-f { + display: flex; +} .flex-grow { flex-grow: 1; @@ -95,7 +98,9 @@ button { .flex-v-center { align-items: center; } - +.ai-c { + align-items: center; +} .flex-h-center { justify-content: center; } @@ -759,6 +764,8 @@ body > #demo-frame { .btn--dark > svg { fill: #9297b3; + width: 20px; + height: 20px; } .btn--dark > svg:not(:last-child) { margin-right: 4px;