diff --git a/components/core/SlatePreviewBlock.js b/components/core/SlatePreviewBlock.js index 24a1c272..35d72567 100644 --- a/components/core/SlatePreviewBlock.js +++ b/components/core/SlatePreviewBlock.js @@ -177,8 +177,8 @@ const STYLES_BODY = css` `; const STYLES_ICON_BOX = css` - height: 32px; - width: 32px; + height: 24px; + width: 24px; display: flex; align-items: center; justify-content: center; @@ -320,228 +320,123 @@ export class SlatePreviewBlock extends React.Component { return (
- {this.props.external ? ( - - -
-
- {this.props.slate.data.name} -
-
- {objects.length} file - {objects.length > 1 ? "s" : ""} + +
+
+ {this.props.slate.data.name} +
+ + {!this.props.external && this.props.username ? ( +
{ + this._test = c; + }} + > +
+ + {this.state.showMenu ?
{contextMenu}
: null}
- {this.props.slate.data.body ? ( -
{this.props.slate.data.body}
- ) : ( -
- )} - {objects.length === 1 || (objects.length != 0 && count <= 3) ? ( -
- -
- ) : first ? ( -
-
- -
-
- -
-
- ) : ( -
- )} - - -
{this.props.slate.data.name}
+ ) : (
{objects.length} file {objects.length > 1 ? "s" : ""}
-
- {first ? ( - - ) : ( -
- )} -
- - - ) : ( - -
-
{this.props.slate.data.name}
-
- {this.props.isOwner && !this.props.slate.data.public ? ( - - ) : null} -
- {this.props.username ? ( -
{ - this._test = c; - }} - > -
- - {this.state.showMenu ? ( -
{contextMenu}
- ) : null} -
-
- ) : null} + )} +
+ {this.props.slate.data.body ? ( +
{this.props.slate.data.body}
+ ) : ( +
+ )} + {objects.length === 1 || (objects.length != 0 && count <= 3) ? ( +
+
- -
- {this.props.slate.data.body ? ( -
{this.props.slate.data.body}
- ) : this.props.isOwner ? ( -
- ) : ( -
- )} + ) : first ? ( +
+
+
- {first ? ( - - ) : this.props.isOwner ? ( -
- -
Add Files
-
- ) : ( -
- )} -
- - -
- {this.props.slate.data.name} -
-
- {objects.length} file - {objects.length === 1 ? "" : "s"} +
+
+ ) : ( +
+ )} + + +
{this.props.slate.data.name}
+
+ {objects.length} file + {objects.length > 1 ? "s" : ""} +
+
+ {first ? ( + + ) : (
- {first ? ( - - ) : this.props.isOwner ? ( -
- -
Add Files
-
- ) : ( -
- )} -
- - - )} + /> + )} +
+
); }