Skip to content

Commit 58dacca

Browse files
committed
Fix on bracket show matches
1 parent 33d8a56 commit 58dacca

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed

backend/src/main/resources/public/new/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
<style>@import"https://fonts.googleapis.com/css?family=Work+Sans:300,400,600,700&subset=latin-ext";@charset "UTF-8";:root{--bs-blue:#0d6efd;--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:#dc3545;--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:#198754;--bs-teal:#20c997;--bs-cyan:#0dcaf0;--bs-white:#fff;--bs-gray:#6c757d;--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:#6c757d;--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:#0d6efd;--bs-secondary:#6c757d;--bs-success:#198754;--bs-info:#0dcaf0;--bs-warning:#ffc107;--bs-danger:#dc3545;--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13,110,253;--bs-secondary-rgb:108,117,125;--bs-success-rgb:25,135,84;--bs-info-rgb:13,202,240;--bs-warning-rgb:255,193,7;--bs-danger-rgb:220,53,69;--bs-light-rgb:248,249,250;--bs-dark-rgb:33,37,41;--bs-white-rgb:255,255,255;--bs-black-rgb:0,0,0;--bs-body-color-rgb:33,37,41;--bs-body-bg-rgb:255,255,255;--bs-font-sans-serif:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--bs-font-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-bg:#fff}*,:after,:before{box-sizing:border-box}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}.bg-232323{background-color:#232323}body{font-family:Poppins,sans-serif;overflow-x:hidden;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}</style><link rel="stylesheet" href="styles.ebe6bd1e1f18b752.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles.ebe6bd1e1f18b752.css"></noscript></head>
99
<body class="bg-232323">
1010
<app-root></app-root>
11-
<script src="runtime.1eef65174679b3b8.js" type="module"></script><script src="polyfills.8e591707cfaa9d0d.js" type="module"></script><script src="scripts.f7bdcc9253a06fa1.js" defer></script><script src="main.a7a3c27dc5399545.js" type="module"></script>
11+
<script src="runtime.1eef65174679b3b8.js" type="module"></script><script src="polyfills.8e591707cfaa9d0d.js" type="module"></script><script src="scripts.f7bdcc9253a06fa1.js" defer></script><script src="main.9cb762497527631c.js" type="module"></script>
1212

1313
</body></html>

backend/src/main/resources/public/new/main.9cb762497527631c.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/src/main/resources/public/new/main.a7a3c27dc5399545.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

frontend/src/app/components/tournament/tournament.component.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ <h5 class="card-title pb-1">Participantes</h5>
207207
<div *ngIf="tournament.started" class="tournament-bracket tournament-bracket--rounded mb-5">
208208

209209

210-
<div *ngIf="!rounds[3] = []" class="tournament-bracket__round tournament-bracket__round--semifinals">
210+
<div *ngIf="!RoundEmpty(3)" class="tournament-bracket__round tournament-bracket__round--semifinals">
211211
<h3 class="tournament-bracket__round-title">Octavos de final</h3>
212212
<ul class="tournament-bracket__list">
213213

@@ -290,7 +290,7 @@ <h3 class="tournament-bracket__round-title">Octavos de final</h3>
290290
</div>
291291

292292

293-
<div *ngIf="!rounds[2] = []" class="tournament-bracket__round tournament-bracket__round--quarterfinals">
293+
<div *ngIf="!RoundEmpty(2)" class="tournament-bracket__round tournament-bracket__round--quarterfinals">
294294
<h3 class="tournament-bracket__round-title">Cuartos de final</h3>
295295

296296
<ul class="tournament-bracket__list">
@@ -375,7 +375,7 @@ <h3 class="tournament-bracket__round-title">Cuartos de final</h3>
375375
</div>
376376

377377

378-
<div *ngIf="!rounds[1] = []" class="tournament-bracket__round tournament-bracket__round--semifinals">
378+
<div *ngIf="!RoundEmpty(1)" class="tournament-bracket__round tournament-bracket__round--semifinals">
379379
<h3 class="tournament-bracket__round-title">Semifinales</h3>
380380
<ul class="tournament-bracket__list">
381381

@@ -458,7 +458,7 @@ <h3 class="tournament-bracket__round-title">Semifinales</h3>
458458
</div>
459459

460460

461-
<div *ngIf="!rounds[0] = []" class="tournament-bracket__round tournament-bracket__round--bronze">
461+
<div *ngIf="!RoundEmpty(0)" class="tournament-bracket__round tournament-bracket__round--bronze">
462462
<h3 class="tournament-bracket__round-title">Final</h3>
463463
<ul class="tournament-bracket__list">
464464

frontend/src/app/components/tournament/tournament.component.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ export class TournamentComponent{
101101
)
102102
}
103103

104+
RoundEmpty(num: number): boolean{
105+
return this.rounds[num].length == 0;
106+
}
107+
104108
getName() {
105109
if (this.loginService.isLogged()){
106110
return this.loginService.currentUser().name;

0 commit comments

Comments
 (0)