tiptap: fix backtop btn position

pull/64/head
fantasticit 2022-06-02 17:59:17 +08:00
parent 37c310363d
commit 2992943e4f
2 changed files with 2 additions and 2 deletions

View File

@ -202,7 +202,7 @@ export const EditorInstance = forwardRef((props: IProps, ref) => {
</main>
<BackTop
target={() => $mainContainer.current}
style={{ right: isMobile ? 16 : 100, bottom: 65 }}
style={{ right: isMobile ? 16 : 36, bottom: 65 }}
visibilityHeight={200}
/>
</>

View File

@ -43,7 +43,7 @@ export const ReaderEditor: React.FC<IProps> = ({ content }) => {
</main>
<BackTop
target={() => $mainContainer.current}
style={{ right: isMobile ? 16 : 100, bottom: 65 }}
style={{ right: isMobile ? 16 : 36, bottom: 65 }}
visibilityHeight={200}
/>
</div>