diff --git a/pkg/interface/publish/src/css/custom.css b/pkg/interface/publish/src/css/custom.css index 1ed3a9f1c6..1611a65a4a 100644 --- a/pkg/interface/publish/src/css/custom.css +++ b/pkg/interface/publish/src/css/custom.css @@ -96,7 +96,7 @@ a { .NewPost { width: 100%; - height: calc(100% - 103px); + height: calc(100% - 115px); display: flex; padding-top: 8px; } diff --git a/pkg/interface/publish/src/js/components/lib/about.js b/pkg/interface/publish/src/js/components/lib/about.js deleted file mode 100644 index cecb7de340..0000000000 --- a/pkg/interface/publish/src/js/components/lib/about.js +++ /dev/null @@ -1,16 +0,0 @@ -import React, { Component } from 'react'; - -//TODO "About" subcomponent of Notebook.js -//Fill in with "description" from props.notebook - -export class About extends Component { - render() { - return ( -
- -
- ) - } -} - -export default About diff --git a/pkg/interface/publish/src/js/components/lib/new-post.js b/pkg/interface/publish/src/js/components/lib/new-post.js index 3fd71b315a..ffb4109c85 100644 --- a/pkg/interface/publish/src/js/components/lib/new-post.js +++ b/pkg/interface/publish/src/js/components/lib/new-post.js @@ -46,8 +46,9 @@ export class NewPost extends Component { componentDidUpdate(prevProps, prevState) { let notebook = this.props.notebooks[this.props.ship][this.props.book]; if (notebook.notes[this.state.awaiting]) { + let popout = (this.props.popout) ? "popout/" : ""; let redirect = - `/~publish/note/${this.props.ship}/${this.props.book}/${this.state.awaiting}`; + `/~publish/${popout}note/${this.props.ship}/${this.props.book}/${this.state.awaiting}`; this.props.history.push(redirect); } } @@ -82,13 +83,12 @@ export class NewPost extends Component { ? { color: '#2AA779', cursor: "pointer" } : { color: '#B1B2B3', cursor: "auto" }; - let publishHrefIndex = props.location.pathname.indexOf("/notebook/"); - let publishsubStr = props.location.pathname.substr(publishHrefIndex) + let hrefIndex = props.location.pathname.indexOf("/notebook/"); + let publishsubStr = props.location.pathname.substr(hrefIndex) let popoutHref = `/~publish/popout${publishsubStr}`; let hiddenOnPopout = (props.popout) - ? "" - : "dib-m dib-l dib-xl" + ? "" : "dib-m dib-l dib-xl"; return (