fix: filtrowanie pociągów offline

This commit is contained in:
2023-01-05 15:58:17 +01:00
parent 0e45bca5da
commit b81d98cab7
7 changed files with 125 additions and 117 deletions
+2 -2
View File
@@ -11,10 +11,10 @@ export default defineComponent({
return `background-color: ${bgColor}; color: ${fontColor}; ${boxShadow};`;
},
calculateTextExpStyle(exp: number): string {
calculateTextExpStyle(exp: number, isSupporter = false): string {
const textColor = exp > -1 ? (exp < 2 ? '#26B0D9' : `hsl(${-exp * 5 + 100}, 75%, 50%)`) : '#666';
return `color: ${textColor};`;
return `color: ${textColor}; ${isSupporter ? 'text-shadow: 0 0 10px ' + textColor : ''};`;
},
statusClasses(occupiedTo: string) {