mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-27 10:52:41 +03:00
data: fixes previews
This commit is contained in:
parent
9806f30942
commit
b40aae9865
@ -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 = (
|
||||
<ApplicationNavigation
|
||||
@ -473,7 +474,7 @@ export default class ApplicationPage extends React.Component {
|
||||
/>
|
||||
);
|
||||
|
||||
const headerElement = (
|
||||
let headerElement = (
|
||||
<ApplicationHeader
|
||||
viewer={this.state.viewer}
|
||||
pageTitle={current.target.pageTitle}
|
||||
@ -484,6 +485,10 @@ export default class ApplicationPage extends React.Component {
|
||||
/>
|
||||
);
|
||||
|
||||
if (current.target.decorator === "FILE") {
|
||||
headerElement = null;
|
||||
}
|
||||
|
||||
const scene = React.cloneElement(this.scenes[current.target.decorator], {
|
||||
current: current.target,
|
||||
data: this.state.data,
|
||||
|
@ -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};
|
||||
`;
|
||||
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user