fix(core): doc db text property editing issue (#9055)

fix AF-1901
This commit is contained in:
pengx17 2024-12-09 02:37:13 +00:00
parent 7225f59138
commit 7a1dab134f
No known key found for this signature in database
GPG Key ID: 23F23D9E8B3971ED
2 changed files with 8 additions and 1 deletions

View File

@ -0,0 +1,6 @@
import { style } from '@vanilla-extract/css';
export const richTextInput = style({
width: '100%',
height: '100%',
});

View File

@ -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 <div ref={ref} style={style} />;
return <div className={styles.richTextInput} ref={ref} style={style} />;
};
const DesktopRichTextCell = ({