|
|
@@ -130,20 +130,16 @@ const ConflictDiffModalCore = (props: ConflictDiffModalCoreProps): JSX.Element =
|
|
|
|
|
|
}, [afterResolvedHandler, close, currentPagePath, currentPathname, optionsToSave, pageId, remoteRevisionId, saveOrUpdate, setRemoteLatestPageData]);
|
|
|
|
|
|
- // TODO: No longer support custom close icon in bootstrap v5
|
|
|
- // https://redmine.weseek.co.jp/issues/128470
|
|
|
- // const resizeAndCloseButtons = useMemo(() => (
|
|
|
- // <div className="d-flex flex-nowrap">
|
|
|
- // <ExpandOrContractButton
|
|
|
- // isWindowExpanded={isModalExpanded}
|
|
|
- // expandWindow={() => setIsModalExpanded(true)}
|
|
|
- // contractWindow={() => setIsModalExpanded(false)}
|
|
|
- // />
|
|
|
- // <button type="button" className="close text-white" onClick={close} aria-label="Close">
|
|
|
- // <span aria-hidden="true">×</span>
|
|
|
- // </button>
|
|
|
- // </div>
|
|
|
- // ), [isModalExpanded, close]);
|
|
|
+ const resizeAndCloseButtons = useMemo(() => (
|
|
|
+ <div className='me-3 text-right'>
|
|
|
+ <ExpandOrContractButton
|
|
|
+ isWindowExpanded={isModalExpanded}
|
|
|
+ expandWindow={() => setIsModalExpanded(true)}
|
|
|
+ contractWindow={() => setIsModalExpanded(false)}
|
|
|
+ />
|
|
|
+ <button type="button" className="btn btn-close text-white" onClick={close} aria-label="Close"></button>
|
|
|
+ </div>
|
|
|
+ ), [isModalExpanded, close]);
|
|
|
|
|
|
const isOpen = props.isOpen ?? false;
|
|
|
|
|
|
@@ -155,8 +151,7 @@ const ConflictDiffModalCore = (props: ConflictDiffModalCoreProps): JSX.Element =
|
|
|
className={`${isModalExpanded ? ' grw-modal-expanded' : ''}`}
|
|
|
size="xl"
|
|
|
>
|
|
|
- {/* <ModalHeader tag="h4" toggle={onClose} className="bg-primary text-light align-items-center py-3" close={resizeAndCloseButtons}> */}
|
|
|
- <ModalHeader tag="h4" toggle={onClose} className="bg-primary text-light align-items-center py-3">
|
|
|
+ <ModalHeader tag="h4" toggle={onClose} className="bg-primary text-light align-items-center py-3" close={resizeAndCloseButtons}>
|
|
|
<i className="icon-fw icon-exclamation" />{t('modal_resolve_conflict.resolve_conflict')}
|
|
|
</ModalHeader>
|
|
|
<ModalBody className="mx-4 my-1">
|