✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.
improve mobile experience
AykutSarac16fcd3d61d42
diff --git a/src/components/Button/index.tsx b/src/components/Button/index.tsxindex 5d6a90bd..3de4cbf1 100644--- a/src/components/Button/index.tsx+++ b/src/components/Button/index.tsx@@ -37,7 +37,7 @@ const StyledButton = styled.button<{}@media only screen and (max-width: 768px) {- font-size: 18px;+ font-size: 14px;}`;diff --git a/src/components/Modal/styles.tsx b/src/components/Modal/styles.tsxindex bb7ad7d1..93f5b552 100644--- a/src/components/Modal/styles.tsx+++ b/src/components/Modal/styles.tsx@@ -28,6 +28,11 @@ export const ModalInnerWrapper = styled.div`width: fit-content;animation: ${appearAnimation} 220ms ease-in-out;line-height: 20px;++ @media only screen and (max-width: 768px) {+ min-width: 90%;+ max-width: 90%;+ }`;export const Title = styled.h2`diff --git a/src/components/Sidebar/index.tsx b/src/components/Sidebar/index.tsxindex 95e73059..882bd2c3 100644--- a/src/components/Sidebar/index.tsx+++ b/src/components/Sidebar/index.tsx@@ -36,7 +36,7 @@ const StyledSidebar = styled.div`padding: 4px;border-right: 1px solid ${({ theme }) => theme.BACKGROUND_MODIFIER_ACCENT};- @media only screen and (max-width: 568px) {+ @media only screen and (max-width: 768px) {flex-direction: row;width: 100%;}@@ -91,7 +91,7 @@ const StyledTopWrapper = styled.nav`display: none;}- @media only screen and (max-width: 568px) {+ @media only screen and (max-width: 768px) {flex-direction: row;& > div:nth-child(n + 1) {@@ -120,7 +120,7 @@ const StyledBottomWrapper = styled.nav`border-top: 1px solid ${({ theme }) => theme.BACKGROUND_MODIFIER_ACCENT};}- @media only screen and (max-width: 568px) {+ @media only screen and (max-width: 768px) {display: none;}`;diff --git a/src/components/Tooltip/index.tsx b/src/components/Tooltip/index.tsxindex fa8b53ff..2fd08194 100644--- a/src/components/Tooltip/index.tsx+++ b/src/components/Tooltip/index.tsx@@ -42,7 +42,7 @@ const StyledTooltip = styled.div<{ visible: boolean }>`transparent transparent;}- @media only screen and (max-width: 568px) {+ @media only screen and (max-width: 768px) {display: none;}`;diff --git a/src/containers/Editor/Panes.tsx b/src/containers/Editor/Panes.tsxindex 79653da3..2c1e17b2 100644--- a/src/containers/Editor/Panes.tsx+++ b/src/containers/Editor/Panes.tsx@@ -18,7 +18,7 @@ const LiveEditor = dynamic(() => import("src/containers/Editor/LiveEditor"), {const Panes: React.FC = () => {const hideEditor = useConfig((state) => state.hideEditor);- const isMobile = window.innerWidth <= 568;+ const isMobile = window.innerWidth <= 768;return (<StyledEditor proportionalLayout={false} vertical={isMobile}>diff --git a/src/containers/Editor/Tools.tsx b/src/containers/Editor/Tools.tsxindex 5431986e..e886bd21 100644--- a/src/containers/Editor/Tools.tsx+++ b/src/containers/Editor/Tools.tsx@@ -27,7 +27,7 @@ export const StyledTools = styled.div`color: ${({ theme }) => theme.SILVER};box-shadow: 0 1px 0px ${({ theme }) => theme.BACKGROUND_TERTIARY};- @media only screen and (max-width: 568px) {+ @media only screen and (max-width: 768px) {display: none;}`;diff --git a/src/pages/Editor/index.tsx b/src/pages/Editor/index.tsxindex 66874bb7..e3d2be90 100644--- a/src/pages/Editor/index.tsx+++ b/src/pages/Editor/index.tsx@@ -10,7 +10,7 @@ export const StyledPageWrapper = styled.div`height: 100vh;width: 100%;- @media only screen and (max-width: 568px) {+ @media only screen and (max-width: 768px) {position: fixed;height: -webkit-fill-available;flex-direction: column;