Skip to content

Commit f7c8afc

Browse files
committed
refactor: use flexbox for column stretching
1 parent 9715106 commit f7c8afc

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

resources/views/livewire/competitive-page.blade.php

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
<div class="panel-block is-block">
99
<div class="columns is-centered">
1010
@foreach ($ranked as $playlist)
11-
<div class="column" style="min-height: 100%;">
12-
<div class="card">
11+
<div class="column is-flex is-flex-direction-column is-align-items-stretch">
12+
<div class="card" style="height: 100%;">
1313
<div class="card-header">
1414
<span class="card-header-title">
1515
{{ $playlist->title }}
@@ -32,19 +32,21 @@
3232
</p>
3333

3434
<div class="content">
35-
<progress
36-
class="progress {{ $playlist->getRankPercentColor() }}"
37-
value="{{ $playlist->csr }}"
38-
max="{{ $playlist->next_csr }}"
39-
>%{{ number_format($playlist->next_rank_percent, 2) }}</progress>
40-
<br>
41-
@if ($playlist->hasNextRank())
42-
<span>Up Next: {{ $playlist->next_rank }}</span>
43-
@else
44-
<span>
45-
{{ $playlist->matches_remaining }}
46-
{{ Str::plural('match', $playlist->matches_remaining) }} remaining.
47-
</span>
35+
@if (! $playlist->isOnyx())
36+
<progress
37+
class="progress {{ $playlist->getRankPercentColor() }}"
38+
value="{{ $playlist->csr }}"
39+
max="{{ $playlist->next_csr }}"
40+
>%{{ number_format($playlist->next_rank_percent, 2) }}</progress>
41+
<br>
42+
@if ($playlist->hasNextRank())
43+
<span>Up Next: {{ $playlist->next_rank }}</span>
44+
@else
45+
<span>
46+
{{ $playlist->matches_remaining }}
47+
{{ Str::plural('match', $playlist->matches_remaining) }} remaining.
48+
</span>
49+
@endif
4850
@endif
4951
</div>
5052
</div>

0 commit comments

Comments
 (0)