|
@@ -112,14 +112,6 @@ export const PageView = (props: Props): JSX.Element => {
|
|
|
const footerContents = !isIdenticalPathPage && !isNotFound
|
|
const footerContents = !isIdenticalPathPage && !isNotFound
|
|
|
? (
|
|
? (
|
|
|
<>
|
|
<>
|
|
|
- <div id="comments-container" ref={commentsContainerRef}>
|
|
|
|
|
- <Comments
|
|
|
|
|
- pageId={page._id}
|
|
|
|
|
- pagePath={pagePath}
|
|
|
|
|
- revision={page.revision}
|
|
|
|
|
- onLoaded={() => setCommentsLoaded(true)}
|
|
|
|
|
- />
|
|
|
|
|
- </div>
|
|
|
|
|
{(isUsersHomepagePath && page.creator != null) && (
|
|
{(isUsersHomepagePath && page.creator != null) && (
|
|
|
<UsersHomepageFooter creatorId={page.creator._id} />
|
|
<UsersHomepageFooter creatorId={page.creator._id} />
|
|
|
)}
|
|
)}
|
|
@@ -139,7 +131,21 @@ export const PageView = (props: Props): JSX.Element => {
|
|
|
return (
|
|
return (
|
|
|
<>
|
|
<>
|
|
|
<PageContentsUtilities />
|
|
<PageContentsUtilities />
|
|
|
- <RevisionRenderer rendererOptions={rendererOptions} markdown={markdown} />
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <RevisionRenderer rendererOptions={rendererOptions} markdown={markdown} />
|
|
|
|
|
+
|
|
|
|
|
+ { !isIdenticalPathPage && !isNotFound && (
|
|
|
|
|
+ <div id="comments-container" ref={commentsContainerRef}>
|
|
|
|
|
+ <Comments
|
|
|
|
|
+ pageId={page._id}
|
|
|
|
|
+ pagePath={pagePath}
|
|
|
|
|
+ revision={page.revision}
|
|
|
|
|
+ onLoaded={() => setCommentsLoaded(true)}
|
|
|
|
|
+ />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ ) }
|
|
|
|
|
+ </div>
|
|
|
</>
|
|
</>
|
|
|
);
|
|
);
|
|
|
};
|
|
};
|
|
@@ -156,7 +162,7 @@ export const PageView = (props: Props): JSX.Element => {
|
|
|
{specialContents == null && (
|
|
{specialContents == null && (
|
|
|
<>
|
|
<>
|
|
|
{(isUsersHomepagePath && page?.creator != null) && <UserInfo author={page.creator} />}
|
|
{(isUsersHomepagePath && page?.creator != null) && <UserInfo author={page.creator} />}
|
|
|
- <div className={`mb-5 ${isMobile ? `page-mobile ${styles['page-mobile']}` : ''}`}>
|
|
|
|
|
|
|
+ <div className={`${isMobile ? `page-mobile ${styles['page-mobile']}` : ''}`}>
|
|
|
<Contents />
|
|
<Contents />
|
|
|
</div>
|
|
</div>
|
|
|
</>
|
|
</>
|