diff --git a/apps/web/Components/Calculation/Form/index.jsx b/apps/web/Components/Calculation/Form/index.jsx index 5448eee..74bcb9d 100644 --- a/apps/web/Components/Calculation/Form/index.jsx +++ b/apps/web/Components/Calculation/Form/index.jsx @@ -46,11 +46,11 @@ const ComponentWrapper = styled.div` function Form({ prune }) { return ( - + {formTabs .filter((tab) => !prune?.includes(tab.id)) - .map(({ id, title, Component }) => ( + .map(({ Component, id, title }) => ( diff --git a/apps/web/Components/Calculation/Settings/index.jsx b/apps/web/Components/Calculation/Settings/index.jsx index 7c140bd..e0bf70c 100644 --- a/apps/web/Components/Calculation/Settings/index.jsx +++ b/apps/web/Components/Calculation/Settings/index.jsx @@ -28,7 +28,7 @@ export default function Settings() { : renderFormRows(config.paramsRows); return ( - + {mainRows} {paramsRows} diff --git a/apps/web/Components/Layout/Page.jsx b/apps/web/Components/Layout/Page.jsx index 33f641e..9c52f82 100644 --- a/apps/web/Components/Layout/Page.jsx +++ b/apps/web/Components/Layout/Page.jsx @@ -1,13 +1,31 @@ -import { min } from '@/styles/mq'; -import styled from 'styled-components'; +import { max, min } from '@/styles/mq'; +import styled, { css } from 'styled-components'; import { Box } from 'ui/grid'; +const order = css` + ${max('laptop-m')} { + #settings { + order: 1; + } + + #form { + order: 2; + } + + #output { + order: 3; + } + } +`; + export const Grid = styled(Box)` display: flex; flex-direction: column; gap: 10px; - ${min('laptop')} { + ${order} + + ${min('laptop-m')} { display: grid; align-items: flex-start; grid-template-columns: 2fr 1fr; diff --git a/apps/web/Components/Output/index.jsx b/apps/web/Components/Output/index.jsx index c39734d..f8c2f9b 100644 --- a/apps/web/Components/Output/index.jsx +++ b/apps/web/Components/Output/index.jsx @@ -58,7 +58,7 @@ const Output = observer(() => { }, [$results.payments.length, hasErrors]); return ( - +