mirror of https://github.com/fantasticit/think.git
tiptap: update title wrapper
parent
a8985ae76f
commit
6c2351cbf2
|
@ -6,6 +6,9 @@
|
|||
overflow: hidden;
|
||||
|
||||
img {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-position: center 50%;
|
||||
|
|
|
@ -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}>
|
||||
|
|
Loading…
Reference in New Issue