|
@@ -6,6 +6,7 @@ import type { IPageHasId } from '@growi/core';
|
|
|
import { isGlobPatternPath } from '@growi/core/dist/utils/page-path-utils';
|
|
import { isGlobPatternPath } from '@growi/core/dist/utils/page-path-utils';
|
|
|
import { type TypeaheadRef, Typeahead } from 'react-bootstrap-typeahead';
|
|
import { type TypeaheadRef, Typeahead } from 'react-bootstrap-typeahead';
|
|
|
import { useTranslation } from 'react-i18next';
|
|
import { useTranslation } from 'react-i18next';
|
|
|
|
|
+import SimpleBar from 'simplebar-react';
|
|
|
import {
|
|
import {
|
|
|
ModalBody,
|
|
ModalBody,
|
|
|
} from 'reactstrap';
|
|
} from 'reactstrap';
|
|
@@ -188,14 +189,17 @@ export const AiAssistantKeywordSearch = (props: Props): JSX.Element => {
|
|
|
</h4>
|
|
</h4>
|
|
|
|
|
|
|
|
<div className="px-4">
|
|
<div className="px-4">
|
|
|
- <SelectablePagePageList
|
|
|
|
|
- pages={selectedPagesArray}
|
|
|
|
|
- method="remove"
|
|
|
|
|
- onClickMethodButton={removePage}
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <SimpleBar className="page-list-container" style={{ maxHeight: '300px' }}>
|
|
|
|
|
+ <SelectablePagePageList
|
|
|
|
|
+ pages={selectedPagesArray}
|
|
|
|
|
+ method="remove"
|
|
|
|
|
+ onClickMethodButton={removePage}
|
|
|
|
|
+ />
|
|
|
|
|
+ </SimpleBar>
|
|
|
<label className="form-text text-muted mt-2">
|
|
<label className="form-text text-muted mt-2">
|
|
|
{t('modal_ai_assistant.can_add_later')}
|
|
{t('modal_ai_assistant.can_add_later')}
|
|
|
</label>
|
|
</label>
|
|
|
|
|
+
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div className="d-flex justify-content-center mt-4">
|
|
<div className="d-flex justify-content-center mt-4">
|