Skip to content

Commit

Permalink
fix(core): doc db text property editing issue (#9055)
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed Dec 9, 2024
1 parent 7225f59 commit 7a1dab1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { style } from '@vanilla-extract/css';

export const richTextInput = style({
width: '100%',
height: '100%',
});
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ({
Expand Down Expand Up @@ -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 = ({
Expand Down

0 comments on commit 7a1dab1

Please sign in to comment.