diff --git a/front/style/team_panel.css b/front/style/team_panel.css index 90597ab..28d69ac 100644 --- a/front/style/team_panel.css +++ b/front/style/team_panel.css @@ -15,7 +15,6 @@ body { height: 100vh; } - #content-container { display: flex; flex-direction: row; @@ -57,7 +56,12 @@ header h1 a { font-size: 1.4em; } -html, body, #main-div, #content-container, #right-panel, #tactics { +html, +body, +#main-div, +#content-container, +#right-panel, +#tactics { height: 100%; } @@ -212,7 +216,7 @@ html, body, #main-div, #content-container, #right-panel, #tactics { margin-bottom: 5px; padding: 10px; max-width: 90%; - cursor : pointer; + cursor: pointer; } .tactic button#open-tactic { diff --git a/front/views/Home.tsx b/front/views/Home.tsx index 00091f5..19a4dca 100644 --- a/front/views/Home.tsx +++ b/front/views/Home.tsx @@ -2,14 +2,14 @@ import "../style/home/home.css" import { Header } from "./template/Header" import { BASE } from "../Constants" -import Draggable from "react-draggable"; -import {NULL_POS} from "../components/arrows/Pos"; -import {contains} from "../components/arrows/Box"; -import React, {useRef, useState} from "react"; +import Draggable from "react-draggable" +import { NULL_POS } from "../components/arrows/Pos" +import { contains } from "../components/arrows/Box" +import React, { useRef, useState } from "react" import { fetchAPI } from "../Fetcher" -import {User} from "../model/User"; -import { FaShare } from "react-icons/fa"; -import {SaveStates} from "../components/editor/SavingState"; +import { User } from "../model/User" +import { FaShare } from "react-icons/fa" +import { SaveStates } from "../components/editor/SavingState" interface Tactic { id: number @@ -58,13 +58,18 @@ function Body({ lastTactics: Tactic[] allTactics: Tactic[] teams: Team[] - user : User + user: User }) { const widthPersonalSpace = 78 const widthSideMenu = 100 - widthPersonalSpace return (
Aucune tactique créée !
} else { - data ={tactic.name}
{isCoach && ({user.name}