diff --git a/app/editor/components/FloatingToolbar.tsx b/app/editor/components/FloatingToolbar.tsx index 12895400c..7f55010c3 100644 --- a/app/editor/components/FloatingToolbar.tsx +++ b/app/editor/components/FloatingToolbar.tsx @@ -213,11 +213,11 @@ const FloatingToolbar = React.forwardRef(function FloatingToolbar_( const isMobile = useMobile(); const { height } = useWindowSize(); - if (!props.children) { - return null; - } - if (isMobile) { + if (!props.children) { + return null; + } + if (props.active) { const rect = document.body.getBoundingClientRect(); return (