-
Notifications
You must be signed in to change notification settings - Fork 279
Allow to ❤️ on mobile scoreboard #2826
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ | |
</style> | ||
{% endif %} | ||
|
||
<table class="d-none d-md-table scoreboard center {% if jury %}scoreboard_jury{% endif %}"> | ||
<table class="d-none d-md-table scoreboard desktop-scoreboard center {% if jury %}scoreboard_jury{% endif %}"> | ||
|
||
{% set teamColspan = 2 %} | ||
{% if showAffiliationLogos %} | ||
|
@@ -38,22 +38,22 @@ | |
{# output table column groups (for the styles) #} | ||
<colgroup> | ||
{% if enable_ranking %} | ||
<col id="scorerankmobile"/> | ||
<col id="scorerank"/> | ||
{% endif %} | ||
{% if showFlags %} | ||
<col id="scoreflagsmobile"/> | ||
<col id="scoreflags"/> | ||
{% else %} | ||
<col/> | ||
{% endif %} | ||
{% if showAffiliationLogos %} | ||
<col id="scorelogosmobile"/> | ||
<col id="scorelogos"/> | ||
{% endif %} | ||
<col id="scoreteamnamemobile"/> | ||
<col id="scoreteamname"/> | ||
</colgroup> | ||
{% if enable_ranking %} | ||
<colgroup> | ||
<col id="scoresolvmobile"/> | ||
<col id="scoretotalmobile"/> | ||
<col id="scoresolv"/> | ||
<col id="scoretotal"/> | ||
</colgroup> | ||
{% endif %} | ||
<colgroup> | ||
|
@@ -106,7 +106,7 @@ | |
<tbody> | ||
{% set previousSortOrder = -1 %} | ||
{% set previousTeam = null %} | ||
{% set backgroundColors = {"#FFFFFF": 1} %} | ||
{% set backgroundColors = {"#FFFFFF": 1, '#FFFFE0': 1} %} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's this for? Is it still needed after resolving the previous comment? (also on line 359) EDIT: oh, never mind 😄 Still curious what it's for, though 🙂 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I do think we don't have to do the loop twice though. let me fix that |
||
{% set medalCount = 0 %} | ||
{% for score in scores %} | ||
{% set classes = [] %} | ||
|
@@ -315,25 +315,25 @@ | |
</tbody> | ||
</table> | ||
|
||
<table class="d-md-none scoreboard center {% if jury %}scoreboard_jury{% endif %}"> | ||
<table class="d-md-none scoreboard mobile-scoreboard center {% if jury %}scoreboard_jury{% endif %}"> | ||
{# output table column groups (for the styles) #} | ||
<colgroup> | ||
{% if enable_ranking %} | ||
<col id="scorerank"/> | ||
<col id="scorerankmobile"/> | ||
{% endif %} | ||
{% if showFlags %} | ||
<col id="scoreflags"/> | ||
<col id="scoreflagsmobile"/> | ||
{% else %} | ||
<col/> | ||
{% endif %} | ||
{% if showAffiliationLogos %} | ||
<col id="scorelogos"/> | ||
<col id="scorelogosmobile"/> | ||
{% endif %} | ||
<col id="scoreteamname"/> | ||
<col id="scoreteamnamemobile"/> | ||
</colgroup> | ||
{% if enable_ranking %} | ||
<colgroup> | ||
<col id="scoresolv"/> | ||
<col id="scoresolvmobile"/> | ||
</colgroup> | ||
{% endif %} | ||
<thead> | ||
|
@@ -356,7 +356,6 @@ | |
<tbody> | ||
{% set previousSortOrder = -1 %} | ||
{% set previousTeam = null %} | ||
{% set backgroundColors = {"#FFFFFF": 1} %} | ||
{% set medalCount = 0 %} | ||
{% for score in scores %} | ||
{% set classes = [] %} | ||
|
@@ -431,7 +430,6 @@ | |
{% set colorClass = "_FFFFFF" %} | ||
{% else %} | ||
{% set colorClass = color | replace({"#": "_"}) %} | ||
{% set backgroundColors = backgroundColors | merge({(color): 1}) %} | ||
{% endif %} | ||
<td class="scoretn cl{{ colorClass }}" title="{{ score.team.effectiveName }}"> | ||
{% set link = null %} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I guess that's one way to fix the white colour 😂
Is the extra
cl_FFFFE0
class needed, when the wrapping<div>
will receive the background colourlightyellow
anyway? 🙂There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that cl_ thing is there because if you set a fixed team column width, we do a 'fade out'. For that to work we need an actual background colour always. So I'm just switching it out. Not the most beautiful but it works.