Improve responsiveness

This commit is contained in:
2024-05-06 16:15:06 +01:00
parent e2476c7988
commit c20dee969a
2 changed files with 28 additions and 7 deletions

View File

@@ -1,23 +1,43 @@
#root { #root {
background-color: var(--color-neutral1); background-color: var(--color-neutral1);
display: grid; display: grid;
grid-auto-rows: calc(50svh - 16px);
padding: 8px; padding: 8px;
gap: 8px; gap: 8px;
@media (min-width: 500px) {
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(2, 1fr);
height: 100vh;
}
> div { > div {
border-radius: 16px; border-radius: 16px;
background-color: var(--color-neutral0); background-color: var(--color-neutral0);
padding: 16px; padding: 16px;
width: 100%; width: 100%;
height: max-content;
overflow: hidden; 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 { .chart-card {

View File

@@ -13,6 +13,7 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
height: 100%; height: 100%;
gap: 8px;
justify-content: space-between; justify-content: space-between;
> div { > div {