tiptap: update title wrapper

This commit is contained in:
fantasticit 2022-06-02 23:40:33 +08:00
parent a8985ae76f
commit 6c2351cbf2
2 changed files with 4 additions and 1 deletions

View File

@ -6,6 +6,9 @@
overflow: hidden;
img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-position: center 50%;

View File

@ -43,7 +43,7 @@ export const TitleWrapper = ({ editor, node }) => {
<NodeViewWrapper className={cls(styles.wrap, 'title')}>
{cover ? (
<div className={styles.coverWrap} contentEditable={false}>
<LazyLoadImage src={cover} alt="cover" />
<img src={cover} alt="cover" />
{isEditable ? (
<div className={styles.toolbar}>
<ImageUploader images={images} selectImage={setCover}>