feat(PageComponent): adjust minZoom and maxZoom values to improve user experience when zooming in and out of the flowchart.

This commit is contained in:
anovazzi1 2023-06-22 22:17:37 -03:00
commit 1103a22870

View file

@ -398,8 +398,8 @@ export default function Page({ flow }: { flow: FlowType }) {
zoomOnDoubleClick={!disableCopyPaste}
selectNodesOnDrag={false}
className="theme-attribution"
minZoom={0.05}
maxZoom={4}
minZoom={0.01}
maxZoom={8}
>
<Background className="dark:bg-gray-900" />
<Controls className="[&>button]:text-black [&>button]:dark:bg-gray-800 hover:[&>button]:dark:bg-gray-700 [&>button]:dark:text-gray-400 [&>button]:dark:fill-gray-400 [&>button]:dark:border-gray-600"></Controls>