|
@@ -4,7 +4,7 @@ import Clamp from 'react-multiline-clamp';
|
|
|
|
|
|
|
|
import { UserPicture, PageListMeta, PagePathLabel } from '@growi/ui';
|
|
import { UserPicture, PageListMeta, PagePathLabel } from '@growi/ui';
|
|
|
import { pagePathUtils, DevidedPagePath } from '@growi/core';
|
|
import { pagePathUtils, DevidedPagePath } from '@growi/core';
|
|
|
-import { useIsDeviceSmallerThanMd } from '~/stores/ui';
|
|
|
|
|
|
|
+import { useIsDeviceSmallerThanLg } from '~/stores/ui';
|
|
|
|
|
|
|
|
import { IPageSearchResultData } from '../../interfaces/search';
|
|
import { IPageSearchResultData } from '../../interfaces/search';
|
|
|
import PageItemControl from '../Common/Dropdown/PageItemControl';
|
|
import PageItemControl from '../Common/Dropdown/PageItemControl';
|
|
@@ -28,7 +28,7 @@ const SearchResultListItem: FC<Props> = memo((props:Props) => {
|
|
|
page: { pageData, pageMeta }, isSelected, onClickSearchResultItem, onClickCheckbox, isChecked, isEnableActions, shortBody,
|
|
page: { pageData, pageMeta }, isSelected, onClickSearchResultItem, onClickCheckbox, isChecked, isEnableActions, shortBody,
|
|
|
} = props;
|
|
} = props;
|
|
|
|
|
|
|
|
- const { data: isDeviceSmallerThanMd } = useIsDeviceSmallerThanMd();
|
|
|
|
|
|
|
+ const { data: isDeviceSmallerThanLg } = useIsDeviceSmallerThanLg();
|
|
|
|
|
|
|
|
const pagePath: DevidedPagePath = new DevidedPagePath(pageData.path, true);
|
|
const pagePath: DevidedPagePath = new DevidedPagePath(pageData.path, true);
|
|
|
|
|
|
|
@@ -48,7 +48,7 @@ const SearchResultListItem: FC<Props> = memo((props:Props) => {
|
|
|
/>
|
|
/>
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
- const responsiveListStyleClass = `${isDeviceSmallerThanMd ? '' : `list-group-item-action ${isSelected ? 'active' : ''}`}`;
|
|
|
|
|
|
|
+ const responsiveListStyleClass = `${isDeviceSmallerThanLg ? '' : `list-group-item-action ${isSelected ? 'active' : ''}`}`;
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<li
|
|
<li
|