Fix mobile display (#77)

This commit is contained in:
Timothy Armes
2023-07-06 23:11:01 +02:00
committed by GitHub
parent 30b59ff42a
commit 06eade3b6b
3 changed files with 12 additions and 8 deletions
+3 -6
View File
@@ -11,7 +11,7 @@ import {
LayerGroup, LayerGroup,
useMapEvent, useMapEvent,
} from "react-leaflet"; } from "react-leaflet";
import { FaChevronDown } from "react-icons/fa"; import { FaAngleDoubleDown } from "react-icons/fa";
import { useAtomValue, useSetAtom } from "jotai"; import { useAtomValue, useSetAtom } from "jotai";
import "leaflet/dist/leaflet.css"; import "leaflet/dist/leaflet.css";
@@ -265,10 +265,7 @@ export default function TournamentMap() {
}; };
return ( return (
<section <section id="tournament-map" className="flex h-screen flex-col pb-[144px]">
id="tournament-map"
className="flex h-[calc(100vh-144px)] flex-col"
>
<div className="p-3 lg:hidden"> <div className="p-3 lg:hidden">
<TimeControlFilters /> <TimeControlFilters />
</div> </div>
@@ -312,7 +309,7 @@ export default function TournamentMap() {
className="p-3 text-teal-900 dark:text-white" className="p-3 text-teal-900 dark:text-white"
onClick={onScrollToTable} onClick={onScrollToTable}
> >
<FaChevronDown /> <FaAngleDoubleDown />
</button> </button>
</div> </div>
</section> </section>
+1 -1
View File
@@ -46,7 +46,7 @@ export default function TournamentTable() {
return ( return (
<section <section
className="tournament-table grid w-full auto-rows-max pb-20 lg:col-start-2 lg:col-end-3 lg:h-[calc(100vh-144px)] lg:overflow-y-scroll" className="tournament-table grid w-full auto-rows-max pb-20 lg:col-start-2 lg:col-end-3 lg:h-screen lg:overflow-y-scroll lg:pb-[144px]"
id="tournament-table" id="tournament-table"
data-test="tournament-table-div" data-test="tournament-table-div"
> >
+8 -1
View File
@@ -6,6 +6,13 @@ module.exports = {
"./components/**/*.{js,ts,jsx,tsx,mdx}", "./components/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}", "./app/**/*.{js,ts,jsx,tsx,mdx}",
], ],
theme: {}, theme: {
extend: {
height: {
// We use 100svh, falling back to vh for old browsers
screen: ['100vh', '100svh'],
}
}
},
plugins: [], plugins: [],
}; };