diff --git a/apps/web/src/components/common/editor/MindEditor.tsx b/apps/web/src/components/common/editor/MindEditor.tsx index 88d745b..fb07164 100755 --- a/apps/web/src/components/common/editor/MindEditor.tsx +++ b/apps/web/src/components/common/editor/MindEditor.tsx @@ -56,7 +56,6 @@ export default function MindEditor({ id }: { id?: string }) { const containerRef = useRef(null); const [instance, setInstance] = useState(null); const { isAuthenticated, user, hasSomePermissions } = useAuth(); - const { data: post, isLoading }: { data: PostDto; isLoading: boolean } = api.post.findFirst.useQuery({ where: { @@ -182,8 +181,14 @@ export default function MindEditor({ id }: { id?: string }) { `mind-thumb-${new Date().toString()}` ); }; + useEffect(()=>{ + containerRef.current.style.height = `${Math.floor(window.innerHeight/1.25)}px` + },[]) + return ( -
+ +
+ {canEdit && taxonomies && (
)} -
e.preventDefault()} /> +
e.preventDefault()}/> {canEdit && instance && } {isLoading && (