mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-22 12:36:24 +08:00
fix(core): trash style (#15306)
fix #15259 #### PR Dependency Tree * **PR #15306** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Truncated long document titles to 64 characters in the “Move to trash” confirmation dialog, improving readability and preventing overly long modal titles. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
+2
-1
@@ -25,6 +25,7 @@ import {
|
||||
TocIcon,
|
||||
} from '@blocksuite/icons/rc';
|
||||
import { useLiveData, useService } from '@toeverything/infra';
|
||||
import { truncate } from 'lodash-es';
|
||||
import { useCallback, useEffect, useState } from 'react';
|
||||
|
||||
import { JournalConflictsMenuItem } from './menu/journal-conflicts';
|
||||
@@ -98,7 +99,7 @@ export const PageHeaderMenuButton = () => {
|
||||
openConfirmModal({
|
||||
title: t['com.affine.moveToTrash.title'](),
|
||||
description: t['com.affine.moveToTrash.confirmModal.description']({
|
||||
title: doc.title$.value,
|
||||
title: truncate(doc.title$.value, { length: 64 }),
|
||||
}),
|
||||
confirmText: t['com.affine.moveToTrash.confirmModal.confirm'](),
|
||||
cancelText: t['com.affine.moveToTrash.confirmModal.cancel'](),
|
||||
|
||||
Reference in New Issue
Block a user