Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

style: fix mobile layout

AykutSarac3450bc45c025
diff --git a/src/containers/Editor/BottomBar.tsx b/src/containers/Editor/BottomBar.tsx
index 89428161..459cb90f 100644
--- a/src/containers/Editor/BottomBar.tsx
+++ b/src/containers/Editor/BottomBar.tsx
@@ -29,7 +29,7 @@ const StyledBottomBar = styled.div`
height: 27px;
padding: 0 6px;
- @media screen and (max-width: 480px) {
+ @media screen and (max-width: 320px) {
display: none;
}
`;
@@ -39,6 +39,10 @@ const StyledLeft = styled.div`
align-items: center;
justify-content: left;
gap: 4px;
+
+ @media screen and (max-width: 480px) {
+ display: none;
+ }
`;
const StyledRight = styled.div`
diff --git a/src/containers/Editor/LiveEditor/Tools.tsx b/src/containers/Editor/LiveEditor/Tools.tsx
index fea85297..bedf22ef 100644
--- a/src/containers/Editor/LiveEditor/Tools.tsx
+++ b/src/containers/Editor/LiveEditor/Tools.tsx
@@ -45,7 +45,7 @@ export const StyledTools = styled.div`
box-shadow: 0 1px 0px ${({ theme }) => theme.BACKGROUND_TERTIARY};
z-index: 36;
- @media only screen and (max-width: 480px) {
+ @media only screen and (max-width: 320px) {
display: none;
}
`;
diff --git a/src/containers/Editor/Panes.tsx b/src/containers/Editor/Panes.tsx
index dca0d4d5..d4a85cc8 100644
--- a/src/containers/Editor/Panes.tsx
+++ b/src/containers/Editor/Panes.tsx
@@ -12,7 +12,7 @@ export const StyledEditor = styled(Allotment)`
background: ${({ theme }) => theme.BACKGROUND_SECONDARY};
height: calc(100vh - 63px);
- @media only screen and (max-width: 480px) {
+ @media only screen and (max-width: 320px) {
height: 100vh;
}
`;
diff --git a/src/layout/Loading/index.tsx b/src/layout/Loading/index.tsx
index bc6d362c..50b364a2 100644
--- a/src/layout/Loading/index.tsx
+++ b/src/layout/Loading/index.tsx
@@ -25,7 +25,7 @@ const StyledLoading = styled.div<{ visible: boolean }>`
width: 100%;
height: 100vh;
text-align: center;
- background: rgba(30, 30, 30, 0.8);
+ background: rgba(30, 30, 30, 0.6);
z-index: 100;
pointer-events: visiblePainted;
cursor: wait;
@@ -34,7 +34,7 @@ const StyledLoading = styled.div<{ visible: boolean }>`
visibility: hidden;
img {
- transform: rotate(45deg) translate(100px, -70px);
+ transform: rotate(45deg);
}
`;
@@ -44,7 +44,7 @@ const StyledText = styled.span`
const StyledMessage = styled.div`
color: #b9bbbe;
- font-size: 32px;
+ font-size: 1.5rem;
font-weight: 600;
`;
@@ -52,8 +52,8 @@ export const Loading: React.FC<LoadingProps> = ({ loading = true, message }) =>
<Center mx="auto">
<StyledLoading visible={loading}>
<Stack>
- <Image maw={150} src="./assets/rocket_ship.webp" alt="loading image" />
- <Title size="4rem">
+ <Image mx="auto" width="6.5em" src="./assets/rocket_ship.webp" alt="loading image" />
+ <Title size="3.2em">
<StyledText>JSON</StyledText> Crack
</Title>
<StyledMessage>{message ?? "Preparing the environment for you..."}</StyledMessage>
diff --git a/src/pages/editor.tsx b/src/pages/editor.tsx
index 784f4462..6ae1d133 100644
--- a/src/pages/editor.tsx
+++ b/src/pages/editor.tsx
@@ -17,7 +17,7 @@ export const StyledPageWrapper = styled.div`
height: calc(100vh - 27px);
width: 100%;
- @media only screen and (max-width: 480px) {
+ @media only screen and (max-width: 320px) {
height: 100vh;
}
`;