mirror of https://github.com/fantasticit/think.git
tiptap: fix backtop btn position
This commit is contained in:
parent
37c310363d
commit
2992943e4f
|
@ -202,7 +202,7 @@ export const EditorInstance = forwardRef((props: IProps, ref) => {
|
||||||
</main>
|
</main>
|
||||||
<BackTop
|
<BackTop
|
||||||
target={() => $mainContainer.current}
|
target={() => $mainContainer.current}
|
||||||
style={{ right: isMobile ? 16 : 100, bottom: 65 }}
|
style={{ right: isMobile ? 16 : 36, bottom: 65 }}
|
||||||
visibilityHeight={200}
|
visibilityHeight={200}
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
|
|
|
@ -43,7 +43,7 @@ export const ReaderEditor: React.FC<IProps> = ({ content }) => {
|
||||||
</main>
|
</main>
|
||||||
<BackTop
|
<BackTop
|
||||||
target={() => $mainContainer.current}
|
target={() => $mainContainer.current}
|
||||||
style={{ right: isMobile ? 16 : 100, bottom: 65 }}
|
style={{ right: isMobile ? 16 : 36, bottom: 65 }}
|
||||||
visibilityHeight={200}
|
visibilityHeight={200}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue