From 95b24bb14b9a3537ed91a8a04079b5bb19cad17a Mon Sep 17 00:00:00 2001 From: DahmaneYanis Date: Tue, 19 Dec 2023 10:54:20 +0100 Subject: [PATCH] Can display all tactics in the personal space --- front/style/home.css | 11 ++++++++++- front/views/Home.tsx | 1 - src/App/Controller/UserController.php | 1 - 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/front/style/home.css b/front/style/home.css index ed496dc..19067f8 100644 --- a/front/style/home.css +++ b/front/style/home.css @@ -33,7 +33,7 @@ background-color: grey; } -#ps-title { +#titlePersonalSpace h2 { text-align: center; } @@ -57,4 +57,13 @@ background-color: black; padding : 1.5%; margin-bottom: 0px; +} + +table { + width: 100%; +} + +td { + text-align: center; + border : 3px solid black; } \ No newline at end of file diff --git a/front/views/Home.tsx b/front/views/Home.tsx index 9b11d35..9ddb840 100644 --- a/front/views/Home.tsx +++ b/front/views/Home.tsx @@ -12,7 +12,6 @@ export default function Home({ lastTactics, allTactics } : { lastTactics : Tacti
<Body lastTactics={lastTactics} allTactics={allTactics}/> - </div> ) } diff --git a/src/App/Controller/UserController.php b/src/App/Controller/UserController.php index 9ad767f..0af4214 100644 --- a/src/App/Controller/UserController.php +++ b/src/App/Controller/UserController.php @@ -26,7 +26,6 @@ class UserController { $limitNbTactics = 5; $lastTactics = $this->tactics->getLast($limitNbTactics, $session->getAccount()->getId()); $allTactics = $this->tactics->getAll($session->getAccount()->getId()); - return ViewHttpResponse::react("views/Home.tsx", [ "lastTactics" => $lastTactics, "allTactics" => $allTactics