Fix printing under chrome and firefox

This commit is contained in:
Claude Brisson
2024-04-10 16:37:42 +02:00
parent 2d62f3831a
commit f155c5340e
3 changed files with 33 additions and 16 deletions

View File

@@ -506,6 +506,7 @@
width: unset; width: unset;
height: unset; height: unset;
font-size: 0.65em; font-size: 0.65em;
overflow: visible;
} }
.roundbox { .roundbox {
@@ -563,10 +564,6 @@
} }
} }
.circular.label {
transform: scale(0.7);
}
#pairing-right { #pairing-right {
max-width: unset !important; max-width: unset !important;
} }
@@ -644,17 +641,23 @@
.player { .player {
color: black !important; color: black !important;
} }
.ui.red.circular.label {
background-color: white; .participation .ui.label {
color: white; background: none;
border-color: black; border: none;
text-decoration: solid line-through black;
}
.ui.green.circular.label {
background-color: white;
color: black;
border-color: black;
font-weight: bold; font-weight: bold;
min-width: unset;
&.red {
color: rgba(0,0,0,0);
text-decoration: solid line-through black;
}
&.green {
color: black;
}
} }
table tr td, table tr th { page-break-inside:avoid; }
thead { display:table-header-group; }
tfoot { display:table-footer-group; }
} }
} }

View File

@@ -70,6 +70,18 @@
tr.highlighted { tr.highlighted {
background-color: #D0FFD0; background-color: #D0FFD0;
} }
.participation {
white-space: nowrap;
.ui.label {
font-size: 0.8rem;
min-width: 2em;
min-height: 2em;
padding: .5em !important;
line-height: 1em;
text-align: center;
border-radius: 500rem;
}
}
} }
} }

View File

@@ -56,14 +56,16 @@
<td data-sort="$part.rank">#rank($part.rank)#if($part.mmsCorrection) (#if($part.mmsCorrection > 0)+#end$part.mmsCorrection)#end</td> <td data-sort="$part.rank">#rank($part.rank)#if($part.mmsCorrection) (#if($part.mmsCorrection > 0)+#end$part.mmsCorrection)#end</td>
<td>$part.rating</td> <td>$part.rating</td>
<td class="participating" data-sort="#if($part.skip)$part.skip.size()/part.skip#{else}0#end"> <td class="participating" data-sort="#if($part.skip)$part.skip.size()/part.skip#{else}0#end">
<div class="participation">
#foreach($round in [1..$tour.rounds]) #foreach($round in [1..$tour.rounds])
## CB TODO - upstream json parsing should not give longs here, should it? ## CB TODO - upstream json parsing should not give longs here, should it?
#if($part.skip && $part.skip.contains($round.longValue())) #if($part.skip && $part.skip.contains($round.longValue()))
<label class="ui red circular label">$round</label> <label class="ui red label">$round</label>
#else #else
<label class="ui green circular label">$round</label> <label class="ui green label">$round</label>
#end #end
#end #end
</div>
</td> </td>
</tr> </tr>
#end #end