diff --git a/src/views/preview/presentation.jsx b/src/views/preview/presentation.jsx
index 02e5e5c5a..643f98db9 100644
--- a/src/views/preview/presentation.jsx
+++ b/src/views/preview/presentation.jsx
@@ -110,6 +110,7 @@ const PreviewPresentation = ({
remixes,
replies,
reportOpen,
+ showAdminPanel,
showModInfo,
singleCommentId,
userOwnsProject,
@@ -180,22 +181,24 @@ const PreviewPresentation = ({
return (
-
-
-
+ isOpen={adminPanelOpen}
+ onClose={onCloseAdminPanel}
+ onOpen={onOpenAdminPanel}
+ >
+
+
+ )}
{ projectInfo && projectInfo.author && projectInfo.author.id && (
{banner}
@@ -646,6 +649,7 @@ PreviewPresentation.propTypes = {
remixes: PropTypes.arrayOf(PropTypes.object),
replies: PropTypes.objectOf(PropTypes.array),
reportOpen: PropTypes.bool,
+ showAdminPanel: PropTypes.bool,
showModInfo: PropTypes.bool,
singleCommentId: PropTypes.oneOfType([PropTypes.number, PropTypes.bool]),
userOwnsProject: PropTypes.bool,
diff --git a/src/views/preview/preview.scss b/src/views/preview/preview.scss
index 5fdbeef21..8090d47a9 100644
--- a/src/views/preview/preview.scss
+++ b/src/views/preview/preview.scss
@@ -43,7 +43,7 @@ $stage-width: 480px;
.project-admin-panel.admin-panel-open {
padding: 0;
- width: 237px;
+ width: 250px;
}
.admin-iframe {
@@ -53,7 +53,7 @@ $stage-width: 480px;
z-index: 100;
margin: 0;
border: 0;
- width: 237px;
+ width: 250px;
height: 100%;
}
diff --git a/src/views/preview/project-view.jsx b/src/views/preview/project-view.jsx
index 134ae836e..caee5d768 100644
--- a/src/views/preview/project-view.jsx
+++ b/src/views/preview/project-view.jsx
@@ -576,6 +576,7 @@ class Preview extends React.Component {
replies={this.props.replies}
reportOpen={this.state.reportOpen}
showModInfo={this.props.isAdmin}
+ showAdminPanel={this.props.isAdmin}
singleCommentId={this.state.singleCommentId}
userOwnsProject={this.props.userOwnsProject}
visibilityInfo={this.props.visibilityInfo}