diff --git a/README.md b/README.md
index 6add0cc9f..66af2c6a0 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-623h-blueviolet.svg)]()
+[![Time](https://img.shields.io/badge/development-624h-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/fight/duel/user-score/score/score.component.html b/frontend/src/app/components/fight/duel/user-score/score/score.component.html
index 0e8bd2f86..18934d628 100644
--- a/frontend/src/app/components/fight/duel/user-score/score/score.component.html
+++ b/frontend/src/app/components/fight/duel/user-score/score/score.component.html
@@ -9,14 +9,14 @@
(focus)="clearCoordinates();"
(blur)="clearCoordinates();"
class="point" [ngClass]="{'hidden-point': scoreRepresentation === 'F'}" >
- {{scoreRepresentation}}
+ {{scoreRepresentation}}
+ class="tooltip-popup">
timer
diff --git a/frontend/src/app/components/fight/duel/user-score/score/score.component.scss b/frontend/src/app/components/fight/duel/user-score/score/score.component.scss
index 641f33e4a..3d14c6c5b 100644
--- a/frontend/src/app/components/fight/duel/user-score/score/score.component.scss
+++ b/frontend/src/app/components/fight/duel/user-score/score/score.component.scss
@@ -20,11 +20,14 @@
font-weight: bold;
font-size: 130%;
flex-grow: 1;
+ height: 20px;
+ width: 20px;
+ position: relative;
}
-.point .tooltiptext {
+.point .tooltip-popup {
visibility: hidden;
- width: 200px;
+ width: 120px;
min-height: 50px;
background-color: #555555;
color: #ffffff;
@@ -35,30 +38,29 @@
/* Position the tooltip text */
position: absolute;
- z-index: 1;
+ z-index: 1000;
top: 125%;
left: 50%;
- margin-left: -100px;
/* Fade in tooltip */
opacity: 0;
transition: opacity 0.3s;
}
-.point .tooltiptext.left-border {
+.point .tooltip-popup.left-border {
margin-left: -40px;
}
-.point .tooltiptext.right-border {
+.point .tooltip-popup.right-border {
margin-left: -260px;
}
-.point .tooltiptext.center {
- margin-left: -100px;
+.tooltip-popup.center {
+ translate: -50%;
}
/* Tooltip arrow */
-.point .tooltiptext::after {
+.point .tooltip-popup::after {
content: "";
position: absolute;
top: -18%;
@@ -71,7 +73,7 @@
/* Show the tooltip text when you mouse over the tooltip container */
-.point:hover .tooltiptext {
+.point:hover .tooltip-popup {
visibility: visible;
opacity: 1;
}
diff --git a/frontend/src/app/components/fight/duel/user-score/score/score.component.ts b/frontend/src/app/components/fight/duel/user-score/score/score.component.ts
index 4f2cf7651..20c18139b 100644
--- a/frontend/src/app/components/fight/duel/user-score/score/score.component.ts
+++ b/frontend/src/app/components/fight/duel/user-score/score/score.component.ts
@@ -230,9 +230,8 @@ export class ScoreComponent implements OnInit, OnChanges {
if (!this.timeRepresentation || this.timeRepresentation.length == 0) {
return "";
}
- let tooltipText: string = '' + this.getScore() + '
' +
- 'timer' + this.timeRepresentation + '
';
- return tooltipText;
+ return '' + this.getScore() + '
' +
+ 'timer' + this.timeRepresentation + '
';
}
updateCoordinates($event: MouseEvent): void {