Commit 7f023636 authored by xiaoye's avatar xiaoye

fix

parent 5473c1da
Pipeline #37945 passed with stages
in 2 minutes and 41 seconds
...@@ -13,7 +13,7 @@ class Participant { ...@@ -13,7 +13,7 @@ class Participant {
constructor(obj: ParticipantObject) { constructor(obj: ParticipantObject) {
const name = obj.name.split('+') const name = obj.name.split('+')
this.name = (name.length == 2 && !Number.isNaN(name[0])) ? name[1] : obj.name; this.name = (name.length == 2 && !Number.isNaN(name[0]) && name[0].length > 3) ? name[1] : obj.name;
this.tournamentId = obj.tournamentId; this.tournamentId = obj.tournamentId;
this.id = obj.id; this.id = obj.id;
this.score = obj.score; this.score = obj.score;
......
...@@ -28,9 +28,7 @@ ...@@ -28,9 +28,7 @@
#body { #body {
width: 80%; width: 80%;
min-width: 208px; min-width: 208px;
display: grid; display: flex;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: 1fr;
justify-content: center; justify-content: center;
transition: all 0.3s ease; transition: all 0.3s ease;
#left { #left {
...@@ -41,16 +39,16 @@ ...@@ -41,16 +39,16 @@
} }
#left, #right { #left, #right {
min-width: 80px; min-width: 80px;
max-width: 40%; width: 40%;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
font-size: 12px; font-size: 16px;
} }
#center { #center {
justify-self: center; justify-self: center;
width: 48px; min-width: 48px;
min-width: 20%; width: 20%;
color: #3b4144; color: #3b4144;
flex-direction: column; flex-direction: column;
padding-right: 2px; padding-right: 2px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment