From b40aae9865adb5c61ec0062995a0960a770e5214 Mon Sep 17 00:00:00 2001 From: jimmylee Date: Mon, 10 Aug 2020 03:18:43 -0700 Subject: [PATCH] data: fixes previews --- components/core/Application.js | 7 ++++++- scenes/SceneFile.js | 2 +- scenes/SceneFilesFolder.js | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/components/core/Application.js b/components/core/Application.js index 0a0ccea0..6d1e0e1a 100644 --- a/components/core/Application.js +++ b/components/core/Application.js @@ -460,6 +460,7 @@ export default class ApplicationPage extends React.Component { const navigation = NavigationData.generate(this.state.viewer); const next = this.state.history[this.state.currentIndex]; const current = NavigationData.getCurrentById(navigation, next.id); + console.log(current); const navigationElement = ( ); - const headerElement = ( + let headerElement = ( ); + if (current.target.decorator === "FILE") { + headerElement = null; + } + const scene = React.cloneElement(this.scenes[current.target.decorator], { current: current.target, data: this.state.data, diff --git a/scenes/SceneFile.js b/scenes/SceneFile.js index 9f55af76..b9096ceb 100644 --- a/scenes/SceneFile.js +++ b/scenes/SceneFile.js @@ -12,7 +12,7 @@ const STYLES_FLEX = css` align-items: center; justify-content: space-between; flex-direction: column; - height: calc(100vh - ${Constants.sizes.header}px); + height: 100vh; background-color: ${Constants.system.pitchBlack}; `; diff --git a/scenes/SceneFilesFolder.js b/scenes/SceneFilesFolder.js index e3f25675..c3a307a2 100644 --- a/scenes/SceneFilesFolder.js +++ b/scenes/SceneFilesFolder.js @@ -75,10 +75,10 @@ export default class SceneFilesFolder extends React.Component { { key: "size", name: "Size", - width: "116px", + width: "84px", type: "FILE_SIZE", }, - { key: "type", name: "Type", type: "TEXT_TAG", width: "136px" }, + { key: "type", name: "Type", type: "TEXT_TAG", width: "172px" }, { key: "networks", name: "Networks",