From b4ddd94c933a88e1b32f086194f6c0835ac6ebb5 Mon Sep 17 00:00:00 2001 From: Matt Way Date: Mon, 19 Aug 2024 14:21:09 +1000 Subject: [PATCH] Improve wrapping of 4 ticks --- php-template/template.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/php-template/template.php b/php-template/template.php index fbd64e8..18be1f6 100644 --- a/php-template/template.php +++ b/php-template/template.php @@ -60,10 +60,14 @@ $candidate_rating = str_repeat("✔️", max(0, min(5, $candidate['Rating']))); $candidate_rating_colour = "green"; - // If string is 5 ticks, insert a zero width space between the 3rd and 4th ticks so that it wraps nicer + // If string is 5 ticks, insert a zero width space entity between the 3rd and 4th ticks so that it wraps nicer if ($candidate_rating == "✔️✔️✔️✔️✔️") { $candidate_rating = "✔️✔️✔️​✔️✔️"; } + // If string is 4 ticks, insert a zero width space entity between the 2nd and 3rd ticks so that it wraps nicer + if ($candidate_rating == "✔️✔️✔️✔️") { + $candidate_rating = "✔️✔️​✔️✔️"; + } ?>