diff --git a/src/client/App.css b/src/client/App.css index fd7ae39..ea85bf4 100644 --- a/src/client/App.css +++ b/src/client/App.css @@ -1,23 +1,43 @@ #root { background-color: var(--color-neutral1); display: grid; - grid-auto-rows: calc(50svh - 16px); padding: 8px; gap: 8px; - @media (min-width: 500px) { - grid-template-columns: repeat(3, 1fr); - grid-template-rows: repeat(2, 1fr); - height: 100vh; - } - > div { border-radius: 16px; background-color: var(--color-neutral0); padding: 16px; width: 100%; + height: max-content; overflow: hidden; } + + .chart { + min-height: 25svh; + } + + @media (min-width: 640px) { + @media (min-height: 640px) { + height: 100vh; + + > div { + height: 100%; + } + + .chart { + min-height: unset; + } + + @media (orientation: landscape) { + grid-template-columns: repeat(3, 1fr); + } + + @media (orientation: portrait) { + grid-template-columns: repeat(2, 1fr); + } + } + } } .chart-card { diff --git a/src/client/components/chart-cards/common/chart.css b/src/client/components/chart-cards/common/chart.css index 0d8fa30..137e46a 100644 --- a/src/client/components/chart-cards/common/chart.css +++ b/src/client/components/chart-cards/common/chart.css @@ -13,6 +13,7 @@ display: flex; flex-direction: column; height: 100%; + gap: 8px; justify-content: space-between; > div {