mirror of https://github.com/fantasticit/think.git
tiptap: update title wrapper
parent
a8985ae76f
commit
6c2351cbf2
|
@ -6,6 +6,9 @@
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
object-position: center 50%;
|
object-position: center 50%;
|
||||||
|
|
|
@ -43,7 +43,7 @@ export const TitleWrapper = ({ editor, node }) => {
|
||||||
<NodeViewWrapper className={cls(styles.wrap, 'title')}>
|
<NodeViewWrapper className={cls(styles.wrap, 'title')}>
|
||||||
{cover ? (
|
{cover ? (
|
||||||
<div className={styles.coverWrap} contentEditable={false}>
|
<div className={styles.coverWrap} contentEditable={false}>
|
||||||
<LazyLoadImage src={cover} alt="cover" />
|
<img src={cover} alt="cover" />
|
||||||
{isEditable ? (
|
{isEditable ? (
|
||||||
<div className={styles.toolbar}>
|
<div className={styles.toolbar}>
|
||||||
<ImageUploader images={images} selectImage={setCover}>
|
<ImageUploader images={images} selectImage={setCover}>
|
||||||
|
|
Loading…
Reference in New Issue