UI optimizations and polish.
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 46s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 46s
This commit is contained in:
@@ -9,11 +9,11 @@
|
||||
</div>
|
||||
<div class="modal-body px-0">
|
||||
<div class="row px-2">
|
||||
<div class="col-6 d-flex flex-column border-end border-secondary px-1 pb-2" id="home-clan-results">
|
||||
<div class="col-6 border-end border-secondary px-1 pb-1" id="home-clan-results">
|
||||
<h3 class="pb-3 text-center text-primary border-bottom border-primary-subtle fw-bold" id="home-clan-name">a</h3>
|
||||
<!-- Dynamically added -->
|
||||
</div>
|
||||
<div class="col-6 d-flex flex-column px-1 mb-2" id="opponent-clan-results">
|
||||
<div class="col-6 px-1 mb-1" id="opponent-clan-results">
|
||||
<h3 class="pb-3 text-center text-danger border-bottom border-danger-subtle fw-bold" id="opp-clan-name">b</h3>
|
||||
<!-- Dynamically added -->
|
||||
</div>
|
||||
@@ -23,13 +23,22 @@
|
||||
</div>
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-3 text-center fs-5 me-4 ps-0">
|
||||
Avg. Score: <span id="home-avg-score"><i class="spinner-grow spinner-grow-sm text-secondary align-baseline mx-2" role="status"></i></span>
|
||||
<img src="../static/icons/average.svg" alt="Avg" class="img-fluid me-1 align-top" style="height: 1.8rem; filter: invert(0.85);"/>
|
||||
<span id="home-avg-score" class="text-warning">
|
||||
<i class="spinner-grow spinner-grow-sm text-secondary align-baseline mx-2" role="status"></i>
|
||||
</span>
|
||||
</div>
|
||||
<div class="col-2 text-center fs-5">
|
||||
Diff: <span id="diff-score"><i class="spinner-grow spinner-grow-sm text-secondary align-baseline mx-2" role="status"></i></span>
|
||||
<i class="bi bi-plus-slash-minus me-2"></i>
|
||||
<span id="diff-score" class="text-warning">
|
||||
<i class="spinner-grow spinner-grow-sm text-secondary align-baseline mx-2" role="status"></i>
|
||||
</span>
|
||||
</div>
|
||||
<div class="col-3 text-center fs-5 ms-4 pe-0">
|
||||
Avg. Score: <span id="opp-avg-score"><i class="spinner-grow spinner-grow-sm text-secondary align-baseline mx-2" role="status"></i></span>
|
||||
<img src="../static/icons/average.svg" alt="Avg" class="img-fluid me-1 align-top" style="height: 1.8rem; filter: invert(0.85);"/>
|
||||
<span id="opp-avg-score" class="text-warning">
|
||||
<i class="spinner-grow spinner-grow-sm text-secondary align-baseline mx-2" role="status"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -41,7 +50,6 @@
|
||||
<button type="submit" name="submit" class="btn btn-lg btn-outline-primary" onclick="downloadScreenshot()" hidden>
|
||||
<i class="bi bi-download"></i>
|
||||
</button>
|
||||
<!--<button type="button" class="btn btn-lg btn-secondary" data-bs-dismiss="modal">Schließen</button>-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -290,6 +298,13 @@
|
||||
});
|
||||
|
||||
Promise.all(promises).then(_ => {
|
||||
let liItems = homeClanResults.querySelectorAll('li');
|
||||
liItems[liItems.length - 1].classList.remove('border-bottom');
|
||||
liItems[liItems.length - 2].classList.remove('border-bottom');
|
||||
liItems = oppClanResults.querySelectorAll('li');
|
||||
liItems[liItems.length - 1].classList.remove('border-bottom');
|
||||
liItems[liItems.length - 2].classList.remove('border-bottom');
|
||||
|
||||
setSquadNumbers();
|
||||
|
||||
cleanupStatistic(homeAvgScore);
|
||||
|
||||
Reference in New Issue
Block a user