💄 Force root div to fit its content (all height before)
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
body {
|
body {
|
||||||
aspect-ratio: 16/9;
|
aspect-ratio: 16/9;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
|
height: none;
|
||||||
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
||||||
@@ -23,6 +24,5 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#root {
|
#root {
|
||||||
height: inherit;
|
|
||||||
width: inherit;
|
width: inherit;
|
||||||
}
|
}
|
||||||
|
@@ -209,7 +209,7 @@ export const StopsManager: VoidComponent = () => {
|
|||||||
const items = [];
|
const items = [];
|
||||||
for (const stop of foundStops().sort((x, y) => x.name.localeCompare(y.name))) {
|
for (const stop of foundStops().sort((x, y) => x.name.localeCompare(y.name))) {
|
||||||
items.push(
|
items.push(
|
||||||
<ListItem h="10%" borderWidth="1px" mb="0px" color="var(--idfm-black)" borderRadius="$lg">
|
<ListItem borderWidth="1px" mb="0px" color="var(--idfm-black)" borderRadius="$lg">
|
||||||
<Button fullWidth="true" color="var(--idfm-black)" bg="white" onClick={() => {
|
<Button fullWidth="true" color="var(--idfm-black)" bg="white" onClick={() => {
|
||||||
console.log(`${stop.id} clicked !!!`);
|
console.log(`${stop.id} clicked !!!`);
|
||||||
setDisplayedStops([stop]);
|
setDisplayedStops([stop]);
|
||||||
|
Reference in New Issue
Block a user