mirror of
https://github.com/toeverything/AFFiNE.git
synced 2025-01-02 07:24:14 +03:00
parent
7225f59138
commit
7a1dab134f
@ -0,0 +1,6 @@
|
||||
import { style } from '@vanilla-extract/css';
|
||||
|
||||
export const richTextInput = style({
|
||||
width: '100%',
|
||||
height: '100%',
|
||||
});
|
@ -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 = ({
|
||||
|
Loading…
Reference in New Issue
Block a user