From c56d624464d1cd4ef37935b0b6f62d95a24f454c Mon Sep 17 00:00:00 2001 From: Software Magico Date: Mon, 17 Jun 2024 09:13:31 +0200 Subject: [PATCH] Improved arrow position --- README.md | 2 +- .../arrow/arrow.component.html | 3 +-- .../arrow/arrow.component.ts | 3 +-- .../fight-list/fight-list.component.html | 19 +++++++++---------- .../views/fight-list/fight-list.component.ts | 17 +++++++---------- 5 files changed, 19 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index 781bc6d01..5af35f157 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ [![GitHub commit activity](https://img.shields.io/github/commit-activity/y/softwaremagico/KendoTournamentManager)](https://github.com/softwaremagico/KendoTournamentManager) [![GitHub last commit](https://img.shields.io/github/last-commit/softwaremagico/KendoTournamentManager)](https://github.com/softwaremagico/KendoTournamentManager) [![CircleCI](https://circleci.com/gh/softwaremagico/KendoTournamentManager.svg?style=shield)](https://circleci.com/gh/softwaremagico/KendoTournamentManager) -[![Time](https://img.shields.io/badge/development-626.5h-blueviolet.svg)]() +[![Time](https://img.shields.io/badge/development-625h-blueviolet.svg)]() [![Powered by](https://img.shields.io/badge/powered%20by%20java-orange.svg?logo=OpenJDK&logoColor=white)]() [![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=kendo-tournament-backend&metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=kendo-tournament-backend) diff --git a/frontend/src/app/components/tournament-brackets-editor/tournament-brackets/arrow/arrow.component.html b/frontend/src/app/components/tournament-brackets-editor/tournament-brackets/arrow/arrow.component.html index f8e430e36..ac74e3535 100644 --- a/frontend/src/app/components/tournament-brackets-editor/tournament-brackets/arrow/arrow.component.html +++ b/frontend/src/app/components/tournament-brackets-editor/tournament-brackets/arrow/arrow.component.html @@ -6,7 +6,6 @@ - diff --git a/frontend/src/app/components/tournament-brackets-editor/tournament-brackets/arrow/arrow.component.ts b/frontend/src/app/components/tournament-brackets-editor/tournament-brackets/arrow/arrow.component.ts index 2972cac6e..fe75df1ac 100644 --- a/frontend/src/app/components/tournament-brackets-editor/tournament-brackets/arrow/arrow.component.ts +++ b/frontend/src/app/components/tournament-brackets-editor/tournament-brackets/arrow/arrow.component.ts @@ -82,8 +82,7 @@ export class ArrowComponent implements OnInit { this.y2 += ArrowComponent.WINNER_SEPARATION; } } - //Arrows define the height of the brackets. Put 300 px to show correctly the group. - this.height = Math.max(this.y2, this.y1) + ArrowComponent.ARROW_SIZE / 2 + BracketsMeasures.GROUP_HIGH + BracketsMeasures.GROUP_SEPARATION; + this.height = Math.max(this.y2, this.y1) + ArrowComponent.ARROW_SIZE / 2; this.width = Math.max(this.x2, this.x1); } diff --git a/frontend/src/app/views/fight-list/fight-list.component.html b/frontend/src/app/views/fight-list/fight-list.component.html index 6a70e87c8..759878f9c 100644 --- a/frontend/src/app/views/fight-list/fight-list.component.html +++ b/frontend/src/app/views/fight-list/fight-list.component.html @@ -40,8 +40,7 @@ matTooltip="{{'groups' | translate}}"> - +