Permalink
Browse files

Fix class color boxes for Safari / iOS

  • Loading branch information...
andreas-gruenbacher committed Oct 30, 2017
1 parent 9ba0617 commit c63b0247315171df21ef2d00e61b1fad2197e55c
@@ -284,7 +284,7 @@
my $farbe = '';
if ($klassenfarben->{$klasse}) {
$farbe = "<span style=\"color:$klassenfarben->{$klasse}\"></span> ";
$farbe = "<span style=\"display:block; width:10pt; height:10pt; background-color:$klassenfarben->{$klasse}\"></span>";
}
doc_h3 $cfg->{klassen}[$klasse - 1]{bezeichnung};
@@ -419,8 +419,7 @@ function eventScoresController($scope, $sce, $route, $location, $timeout, $http,
var color = event.classes[class_ - 1].color;
if (color) {
return $sce.trustAsHtml(
/* '<span style="position: absolute; z-index: 1">◻</span>' + */
'<span style="color:' + color + '">◼</span>');
'<span style="display:block; width:10pt; height:10pt; background-color:' + color + '"></span>');
}
} catch(_) { }
};
@@ -42,8 +42,7 @@ var syncController = [
} else
color = '#FF1700'; // "Red"
return $sce.trustAsHtml(
/* '<span style="position: absolute; z-index: 1">◻</span>' + */
'<span style="color:' + color + '">◼</span>');
'<span style="display:block; width:8pt; height:8pt; background-color:' + color + '"></span>');
// FIXME: Status auch im Fenstertitel anzeigen?
};
View
@@ -405,7 +405,7 @@ sub jahreswertung(@) {
my ($header, $body, $format);
my $farbe = "";
if ($RenderOutput::html && exists $args{klassenfarben}{$klasse}) {
$farbe = "<span style=\"color:$args{klassenfarben}{$klasse}\"></span>";
$farbe = "<span style=\"display:block; width:10pt; height:10pt; background-color:$args{klassenfarben}{$klasse}\"></span>";
}
push @$format, "r3", "r3", "l$namenlaenge";
push @$header, [ $farbe, "c" ], [ "Nr.", "r1", "title=\"Startnummer\"" ], "Name";
View
@@ -184,7 +184,7 @@ sub tageswertung(@) {
4 + $vierpunktewertung + exists($features->{spalte5er}) + $stechen));
if ($RenderOutput::html && exists $args{klassenfarben}{$klasse}) {
$farbe = "<span style=\"color:$args{klassenfarben}{$klasse}\"></span>";
$farbe = "<span style=\"display:block; width:10pt; height:10pt; background-color:$args{klassenfarben}{$klasse}\"></span>";
}
print "\n<div class=\"klasse\" id=\"klasse$klasse\">\n"

0 comments on commit c63b024

Please sign in to comment.