Skip to content

Commit

Permalink
Merge branch 'master' into fix/count-when-aggregation
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki-takei committed Jul 23, 2024
2 parents 7467991 + 9e54d6a commit a23efb7
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 13 deletions.
11 changes: 6 additions & 5 deletions apps/app/src/client/components/Admin/App/V5PageMigration.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import React, {
FC, useCallback, useEffect, useState,
} from 'react';
import type { FC } from 'react';
import React, { useCallback, useEffect, useState } from 'react';

import { useTranslation } from 'next-i18next';

import { toastError, toastSuccess } from '~/client/util/toastr';
import type {
PMStartedData, PMMigratingData, PMErrorCountData, PMEndedData,
} from '~/interfaces/websocket';
import {
SocketEventName, PMStartedData, PMMigratingData, PMErrorCountData, PMEndedData,
SocketEventName,
} from '~/interfaces/websocket';
import { useGlobalAdminSocket } from '~/stores/websocket';

Expand Down Expand Up @@ -64,7 +66,6 @@ const V5PageMigration: FC<Props> = (props: Props) => {
<LabeledProgressBar
header={t('admin:v5_page_migration.header_upgrading_progress')}
currentCount={current}
errorsCount={skip}
totalCount={total}
isInProgress={isInProgress}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import { useCallback, useState } from 'react';
import type { IPageToDeleteWithMeta } from '@growi/core';
import { DropdownToggle } from 'reactstrap';

import { FolderIcon } from '~/client/components/Icons/FolderIcon';
import {
addBookmarkToFolder, addNewFolder, hasChildren, updateBookmarkFolder,
} from '~/client/util/bookmark-utils';
import { toastError } from '~/client/util/toastr';
import { FolderIcon } from '~/client/components/Icons/FolderIcon';
import type { BookmarkFolderItems, DragItemDataType, DragItemType } from '~/interfaces/bookmark-info';
import { DRAG_ITEM_TYPE } from '~/interfaces/bookmark-info';
import type { onDeletedBookmarkFolderFunction } from '~/interfaces/ui';
Expand Down Expand Up @@ -250,7 +250,7 @@ export const BookmarkFolderItem: FC<BookmarkFolderItemProps> = (props: BookmarkF
onClick={loadChildFolder}
>
<div className="d-flex justify-content-center">
<span className="material-symbols-outlined">arrow_right</span>
<span className="material-symbols-outlined fs-5">arrow_right</span>
</div>
</button>
</div>
Expand All @@ -268,7 +268,7 @@ export const BookmarkFolderItem: FC<BookmarkFolderItemProps> = (props: BookmarkF
) : (
<>
<div className="grw-foldertree-title-anchor ps-1">
<p className="text-truncate m-auto ">{name}</p>
<p className="text-truncate m-auto">{name}</p>
</div>
</>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ $grw-bookmark-item-padding-left: 35px;
.grw-foldertree-title-anchor {
width: 100%;
overflow: hidden;
font-size: 14px;
text-decoration: none;
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.modal-notification :global {
.page-title {
font-size: 14px;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import type { IInAppNotification } from '~/interfaces/in-app-notification';

import FormattedDistanceDate from '../../FormattedDistanceDate';

import styles from './ModelNotification.module.scss';

type Props = {
notification: IInAppNotification & HasObjectId
actionMsg: string
Expand All @@ -21,8 +23,8 @@ export const ModelNotification: FC<Props> = (props) => {
} = props;

return (
<div className="p-2 overflow-hidden">
<div className="text-truncate">
<div className={`${styles['modal-notification']} p-2 overflow-hidden`}>
<div className="text-truncate page-title">
<b>{actionUsers}</b>
{actionMsg}
<PagePathLabel path={notification.parsedSnapshot?.path ?? ''} />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.page-title {
flex: 1;
font-size: 14px;
line-height: 1.2;
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
}
}

// font size
.page-tree-item :global {
font-size: 14px;
}

// == Colors

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
.list-group-item :global {
font-size: 12px;

h6 {
font-size: 14px;
}

.grw-recent-changes-skeleton-small {
@include grw-skeleton-text($font-size: 14px, $line-height: 16px);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import { DevidedPagePath } from '@growi/core/dist/models';
import { UserPicture } from '@growi/ui/dist/components';
import { useTranslation } from 'react-i18next';

import { useKeywordManager } from '~/client/services/search-operation';
import { PagePathHierarchicalLink } from '~/components/Common/PagePathHierarchicalLink';
import FormattedDistanceDate from '~/client/components/FormattedDistanceDate';
import InfiniteScroll from '~/client/components/InfiniteScroll';
import { useKeywordManager } from '~/client/services/search-operation';
import { PagePathHierarchicalLink } from '~/components/Common/PagePathHierarchicalLink';
import LinkedPagePath from '~/models/linked-page-path';
import { useSWRINFxRecentlyUpdated } from '~/stores/page-listing';
import loggerFactory from '~/utils/logger';
Expand Down
2 changes: 1 addition & 1 deletion apps/app/src/client/components/TreeItem/TreeItemLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export const TreeItemLayout: FC<TreeItemLayoutProps> = (props) => {
onClick={onClickLoadChildren}
>
<div className="d-flex justify-content-center">
<span className="material-symbols-outlined">arrow_right</span>
<span className="material-symbols-outlined fs-5">arrow_right</span>
</div>
</button>
)}
Expand Down

0 comments on commit a23efb7

Please sign in to comment.