mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 04:26:57 +00:00
table overflow fixed
This commit is contained in:
@@ -1,9 +1,20 @@
|
||||
import Link from "next/link";
|
||||
import { FaGithub } from "react-icons/fa";
|
||||
|
||||
export default function Footer() {
|
||||
return (
|
||||
<footer className="grid grid-cols-2 bg-gray-800 text-white p-3">
|
||||
<div>
|
||||
<p>© {new Date().getFullYear()} - Owen Rees</p>
|
||||
</div>
|
||||
<div>
|
||||
<Link
|
||||
href="https://github.com/TheRealOwenRees/echecsfrance"
|
||||
target="_blank"
|
||||
>
|
||||
<FaGithub />
|
||||
</Link>
|
||||
</div>
|
||||
</footer>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default function Navbar() {
|
||||
</Link>
|
||||
</div>
|
||||
<div className="flex w-full pt-2 justify-center md:w-1/2 md:justify-end">
|
||||
<ul className="list-reset text-white no-underline flex flex-1 md:flex-none items-center">
|
||||
<ul className="list-reset text-white no-underline flex flex-1 justify-around md:flex-none items-center">
|
||||
<li className="mr-10">
|
||||
<Link
|
||||
className="inline-block border-b-4 py-5 border-transparent hover:border-teal-600 transition-all ease-in-out duration-300"
|
||||
|
||||
@@ -16,11 +16,12 @@ export default function TournamentTable({
|
||||
setFilteredTournamentData(tournamentFilter);
|
||||
}, [tournamentFilter]);
|
||||
|
||||
console.log(filteredTournamentData.length);
|
||||
|
||||
const stickyHeader = "sticky top-0 p-3 bg-gray-600";
|
||||
|
||||
return (
|
||||
<section
|
||||
id="tournament-table"
|
||||
className="w-full grid h-[calc(100vh-176px)] md:h-[calc(100vh-82px)] lg:h-[calc(100vh-132px)] lg:col-start-2 lg:col-end-3"
|
||||
>
|
||||
<section className="w-full grid auto-rows-max h-[calc(100vh-176px)] md:h-[calc(100vh-82px)] lg:h-[calc(100vh-132px)] lg:col-start-2 lg:col-end-3">
|
||||
<SearchBar
|
||||
tournamentFilter={tournamentFilter}
|
||||
setTournamentFilter={setTournamentFilter}
|
||||
@@ -28,10 +29,10 @@ export default function TournamentTable({
|
||||
<table className="relative table-fixed w-full text-center text-xs">
|
||||
<thead className="bg-gray-600 text-white">
|
||||
<tr>
|
||||
<th className="sticky top-0 p-3 bg-gray-600">Date</th>
|
||||
<th className="sticky top-0 p-3 bg-gray-600">Ville</th>
|
||||
<th className="sticky top-0 p-3 bg-gray-600">Tournois</th>
|
||||
<th className="sticky top-0 p-3 bg-gray-600">Cadence</th>
|
||||
<th className={stickyHeader}>Date</th>
|
||||
<th className={stickyHeader}>Ville</th>
|
||||
<th className={stickyHeader}>Tournois</th>
|
||||
<th className={stickyHeader}>Cadence</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>{filteredTournamentData}</tbody>
|
||||
|
||||
Reference in New Issue
Block a user