Skip to content

Database diagrams editor that allows you to visualize and design your DB with a single query.

mobile map & toolbar

Guy Ben-Aharon2cd1ed5432d8
diff --git a/src/pages/editor-page/canvas/canvas.tsx b/src/pages/editor-page/canvas/canvas.tsx
index 4b7fb5d1..393bca94 100644
--- a/src/pages/editor-page/canvas/canvas.tsx
+++ b/src/pages/editor-page/canvas/canvas.tsx
@@ -293,7 +293,7 @@ export const Canvas: React.FC<CanvasProps> = () => {
</Controls>
) : null}
<Controls
- position="bottom-center"
+ position={isDesktop ? 'bottom-center' : 'top-center'}
orientation="horizontal"
showZoom={false}
showFitView={false}
@@ -304,8 +304,8 @@ export const Canvas: React.FC<CanvasProps> = () => {
</Controls>
<MiniMap
style={{
- width: 100,
- height: 100,
+ width: isDesktop ? 100 : 60,
+ height: isDesktop ? 100 : 60,
}}
/>
<Background
diff --git a/src/pages/editor-page/top-navbar/top-navbar.tsx b/src/pages/editor-page/top-navbar/top-navbar.tsx
index 71210020..0517535b 100644
--- a/src/pages/editor-page/top-navbar/top-navbar.tsx
+++ b/src/pages/editor-page/top-navbar/top-navbar.tsx
@@ -270,7 +270,7 @@ export const TopNavbar: React.FC<TopNavbarProps> = () => {
return (
<nav className="flex flex-col md:flex-row items-top md:items-center justify-between px-4 h-20 md:h-12 border-b">
- <div className="flex flex-1 justify-start gap-x-3 justify-between md:justify-normal">
+ <div className="flex flex-1 gap-x-3 justify-between md:justify-normal">
<div className="flex font-primary items-top md:items-center py-[10px] md:py-0">
<a
href="https://chartdb.io"