From 7a1dab134f4023601627a1ea90de5a51d04913b7 Mon Sep 17 00:00:00 2001 From: pengx17 Date: Mon, 9 Dec 2024 02:37:13 +0000 Subject: [PATCH] fix(core): doc db text property editing issue (#9055) fix AF-1901 --- .../views/database-properties/cells/rich-text.css.ts | 6 ++++++ .../doc-info/views/database-properties/cells/rich-text.tsx | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 packages/frontend/core/src/modules/doc-info/views/database-properties/cells/rich-text.css.ts diff --git a/packages/frontend/core/src/modules/doc-info/views/database-properties/cells/rich-text.css.ts b/packages/frontend/core/src/modules/doc-info/views/database-properties/cells/rich-text.css.ts new file mode 100644 index 0000000000..fd73a3bdd1 --- /dev/null +++ b/packages/frontend/core/src/modules/doc-info/views/database-properties/cells/rich-text.css.ts @@ -0,0 +1,6 @@ +import { style } from '@vanilla-extract/css'; + +export const richTextInput = style({ + width: '100%', + height: '100%', +}); diff --git a/packages/frontend/core/src/modules/doc-info/views/database-properties/cells/rich-text.tsx b/packages/frontend/core/src/modules/doc-info/views/database-properties/cells/rich-text.tsx index 665c00ee2a..3dbaf5340b 100644 --- a/packages/frontend/core/src/modules/doc-info/views/database-properties/cells/rich-text.tsx +++ b/packages/frontend/core/src/modules/doc-info/views/database-properties/cells/rich-text.tsx @@ -13,6 +13,7 @@ import type * as Y from 'yjs'; import type { DatabaseCellRendererProps } from '../../../types'; import { useBlockStdScope } from '../../../utils'; +import * as styles from './rich-text.css'; // todo(@pengx17): handle markdown/keyboard shortcuts const renderRichText = ({ @@ -67,7 +68,7 @@ const RichTextInput = ({ } return () => {}; }, [dataSource.doc, onChange, std, text]); - return
; + return
; }; const DesktopRichTextCell = ({