From af7c7e6e0b14a59a70225e29d14c5409f95eb92b Mon Sep 17 00:00:00 2001 From: maxime Date: Mon, 8 Jan 2024 23:04:00 +0100 Subject: [PATCH] format and fix --- front/style/home/home.css | 12 ++---------- front/style/theme/dark.css | 4 ++-- front/views/Home.tsx | 10 +++++----- front/views/ProfilPage.tsx | 0 front/views/template/Header.tsx | 2 +- 5 files changed, 10 insertions(+), 18 deletions(-) delete mode 100644 front/views/ProfilPage.tsx diff --git a/front/style/home/home.css b/front/style/home/home.css index b059b7a..455e3af 100644 --- a/front/style/home/home.css +++ b/front/style/home/home.css @@ -12,12 +12,10 @@ body { /* border : solid 1px #303030; */ display: flex; flex-direction: column; - font-family: (--font-content); + font-family: var(--font-content); height: 100%; } - - #body { display: flex; flex-direction: row; @@ -38,14 +36,8 @@ body { cursor: pointer; } -.listTactic { - display: block; -} - -.SetButton { +.set-button { width: 80%; margin-left: 5%; margin-top: 5%; } - - diff --git a/front/style/theme/dark.css b/front/style/theme/dark.css index c3b07ff..bdd4824 100644 --- a/front/style/theme/dark.css +++ b/front/style/theme/dark.css @@ -4,6 +4,6 @@ --third-color: #303341; --accent-color: #ffa238; --main-contrast-color: #e6edf3; - --font-title : Helvetica; - --font-content : Helvetica; + --font-title: Helvetica; + --font-content: Helvetica; } diff --git a/front/views/Home.tsx b/front/views/Home.tsx index 27f7656..44803a3 100644 --- a/front/views/Home.tsx +++ b/front/views/Home.tsx @@ -140,7 +140,7 @@ function TableData({ allTactics }: { allTactics: Tactic[] }) { onClick={() => { location.pathname = "/tactic/" + tactic.id + "/edit" }}> - {troncName(tactic.name, 25)} + {truncateString(tactic.name, 25)} )) i++ @@ -230,7 +230,7 @@ function SetButtonTeam({ teams }: { teams: Team[] }) { } function ButtonTeam({ team }: { team: Team }) { - const name = troncName(team.name, 20) + const name = truncateString(team.name, 20) return (
limit) { name = name.substring(0, limit) + "..." } return name -} \ No newline at end of file +} diff --git a/front/views/ProfilPage.tsx b/front/views/ProfilPage.tsx deleted file mode 100644 index e69de29..0000000 diff --git a/front/views/template/Header.tsx b/front/views/template/Header.tsx index 94687b4..7129153 100644 --- a/front/views/template/Header.tsx +++ b/front/views/template/Header.tsx @@ -33,4 +33,4 @@ export function Header({ username }: { username: string }) {
) -} \ No newline at end of file +}