Fixes: colors in RecentActivity and user-select of regions' Dropdown

This commit is contained in:
Valentin Kaelin 2019-08-22 01:09:17 +02:00
parent 47b0c282d6
commit a2105afdcc
2 changed files with 5 additions and 5 deletions

View file

@ -95,13 +95,13 @@ export default {
}, },
getCaseColor(nbMatches) { getCaseColor(nbMatches) {
/* TODO: change this */ /* TODO: change this */
if (nbMatches > 5) { if (nbMatches >= 6) {
return "bg-teal-200"; return "bg-teal-200";
} else if (nbMatches > 4) { } else if (nbMatches >= 4) {
return "bg-teal-300"; return "bg-teal-300";
} else if (nbMatches > 3) { } else if (nbMatches >= 2) {
return "bg-teal-400"; return "bg-teal-400";
} else if (nbMatches > 1) { } else if (nbMatches >= 1) {
return "bg-teal-500"; return "bg-teal-500";
} }
return "bg-teal-700"; return "bg-teal-700";

View file

@ -14,7 +14,7 @@
:class="{'bg-teal-600' : dropdown}" :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" class="cursor-pointer flex items-center px-2 py-1 rounded transition-all transition-fast ease-in-quad ease-out-quad hover:text-white"
> >
<span class="selected font-bold">{{ selectedRegion }}</span> <span class="selected font-bold select-none">{{ selectedRegion }}</span>
<v-icon name="caret-down" class="ml-1"></v-icon> <v-icon name="caret-down" class="ml-1"></v-icon>
</div> </div>
</div> </div>