|
@@ -38,6 +38,7 @@ import ShareLinkIcon from '../Icons/ShareLinkIcon';
|
|
|
import { NotAvailable } from '../NotAvailable';
|
|
import { NotAvailable } from '../NotAvailable';
|
|
|
import { Skeleton } from '../Skeleton';
|
|
import { Skeleton } from '../Skeleton';
|
|
|
|
|
|
|
|
|
|
+import styles from './GrowiContextualSubNavigation.module.scss';
|
|
|
import PageEditorModeManagerStyles from './PageEditorModeManager.module.scss';
|
|
import PageEditorModeManagerStyles from './PageEditorModeManager.module.scss';
|
|
|
|
|
|
|
|
|
|
|
|
@@ -328,27 +329,30 @@ const GrowiContextualSubNavigation = (props: GrowiContextualSubNavigationProps):
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<>
|
|
<>
|
|
|
- <div className="d-flex justify-content-end p-2 gap-2 gap-md-4">
|
|
|
|
|
- {isViewMode && (
|
|
|
|
|
- <div className="h-50">
|
|
|
|
|
- {pageId != null && (
|
|
|
|
|
- <PageControls
|
|
|
|
|
- pageId={pageId}
|
|
|
|
|
- revisionId={revisionId}
|
|
|
|
|
- shareLinkId={shareLinkId}
|
|
|
|
|
- path={path ?? currentPathname} // If the page is empty, "path" is undefined
|
|
|
|
|
- expandContentWidth={currentPage?.expandContentWidth ?? isContainerFluid}
|
|
|
|
|
- disableSeenUserInfoPopover={isSharedUser}
|
|
|
|
|
- showPageControlDropdown={isAbleToShowPageManagement}
|
|
|
|
|
- additionalMenuItemRenderer={additionalMenuItemsRenderer}
|
|
|
|
|
- onClickDuplicateMenuItem={duplicateItemClickedHandler}
|
|
|
|
|
- onClickRenameMenuItem={renameItemClickedHandler}
|
|
|
|
|
- onClickDeleteMenuItem={deleteItemClickedHandler}
|
|
|
|
|
- onClickSwitchContentWidth={switchContentWidthHandler}
|
|
|
|
|
- />
|
|
|
|
|
- )}
|
|
|
|
|
- </div>
|
|
|
|
|
- )}
|
|
|
|
|
|
|
+ <div
|
|
|
|
|
+ className={`grw-contextual-sub-navigation ${styles['grw-contextual-sub-navigation']}
|
|
|
|
|
+ d-flex align-items-center justify-content-end px-2 py-1 gap-2 gap-md-4
|
|
|
|
|
+ `}
|
|
|
|
|
+ data-testid="grw-contextual-sub-nav"
|
|
|
|
|
+ >
|
|
|
|
|
+ <div className="h-50">
|
|
|
|
|
+ {pageId != null && (
|
|
|
|
|
+ <PageControls
|
|
|
|
|
+ pageId={pageId}
|
|
|
|
|
+ revisionId={revisionId}
|
|
|
|
|
+ shareLinkId={shareLinkId}
|
|
|
|
|
+ path={path ?? currentPathname} // If the page is empty, "path" is undefined
|
|
|
|
|
+ expandContentWidth={currentPage?.expandContentWidth ?? isContainerFluid}
|
|
|
|
|
+ disableSeenUserInfoPopover={isSharedUser}
|
|
|
|
|
+ showPageControlDropdown={isAbleToShowPageManagement}
|
|
|
|
|
+ additionalMenuItemRenderer={additionalMenuItemsRenderer}
|
|
|
|
|
+ onClickDuplicateMenuItem={duplicateItemClickedHandler}
|
|
|
|
|
+ onClickRenameMenuItem={renameItemClickedHandler}
|
|
|
|
|
+ onClickDeleteMenuItem={deleteItemClickedHandler}
|
|
|
|
|
+ onClickSwitchContentWidth={switchContentWidthHandler}
|
|
|
|
|
+ />
|
|
|
|
|
+ )}
|
|
|
|
|
+ </div>
|
|
|
{isAbleToChangeEditorMode && (
|
|
{isAbleToChangeEditorMode && (
|
|
|
<PageEditorModeManager
|
|
<PageEditorModeManager
|
|
|
editorMode={editorMode}
|
|
editorMode={editorMode}
|