From a2105afdcc77b63498a3ea566a272538c523e971 Mon Sep 17 00:00:00 2001 From: Valentin Kaelin Date: Thu, 22 Aug 2019 01:09:17 +0200 Subject: [PATCH] Fixes: colors in RecentActivity and user-select of regions' Dropdown --- client/src/components/RecentActivity.vue | 8 ++++---- client/src/components/SearchForm.vue | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/src/components/RecentActivity.vue b/client/src/components/RecentActivity.vue index 85ada62..1eae17f 100644 --- a/client/src/components/RecentActivity.vue +++ b/client/src/components/RecentActivity.vue @@ -95,13 +95,13 @@ export default { }, getCaseColor(nbMatches) { /* TODO: change this */ - if (nbMatches > 5) { + if (nbMatches >= 6) { return "bg-teal-200"; - } else if (nbMatches > 4) { + } else if (nbMatches >= 4) { return "bg-teal-300"; - } else if (nbMatches > 3) { + } else if (nbMatches >= 2) { return "bg-teal-400"; - } else if (nbMatches > 1) { + } else if (nbMatches >= 1) { return "bg-teal-500"; } return "bg-teal-700"; diff --git a/client/src/components/SearchForm.vue b/client/src/components/SearchForm.vue index 2388475..b6ece5b 100644 --- a/client/src/components/SearchForm.vue +++ b/client/src/components/SearchForm.vue @@ -14,7 +14,7 @@ :class="{'bg-teal-600' : dropdown}" class="cursor-pointer flex items-center px-2 py-1 rounded transition-all transition-fast ease-in-quad ease-out-quad hover:text-white" > - {{ selectedRegion }} + {{ selectedRegion }}