From 6c2351cbf203133e19c96f31cbb4be50cbf1d058 Mon Sep 17 00:00:00 2001 From: fantasticit Date: Thu, 2 Jun 2022 23:40:33 +0800 Subject: [PATCH] tiptap: update title wrapper --- .../client/src/tiptap/core/wrappers/title/index.module.scss | 3 +++ packages/client/src/tiptap/core/wrappers/title/index.tsx | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/client/src/tiptap/core/wrappers/title/index.module.scss b/packages/client/src/tiptap/core/wrappers/title/index.module.scss index ff9dd1d..de366d5 100644 --- a/packages/client/src/tiptap/core/wrappers/title/index.module.scss +++ b/packages/client/src/tiptap/core/wrappers/title/index.module.scss @@ -6,6 +6,9 @@ overflow: hidden; img { + position: absolute; + top: 0; + left: 0; width: 100%; height: 100%; object-position: center 50%; diff --git a/packages/client/src/tiptap/core/wrappers/title/index.tsx b/packages/client/src/tiptap/core/wrappers/title/index.tsx index 108f66a..b05fba2 100644 --- a/packages/client/src/tiptap/core/wrappers/title/index.tsx +++ b/packages/client/src/tiptap/core/wrappers/title/index.tsx @@ -43,7 +43,7 @@ export const TitleWrapper = ({ editor, node }) => { {cover ? (
- + cover {isEditable ? (