diff --git a/package.json b/package.json index 3c8b57f7..8ce99075 100644 --- a/package.json +++ b/package.json @@ -19,12 +19,12 @@ "lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix", "typecheck:node": "tsc --noEmit -p tsconfig.node.json --composite false", "typecheck:web": "tsc --noEmit -p tsconfig.web.json --composite false", - "typecheck": "npm run typecheck:node && npm run typecheck:web", + "typecheck": "yarn run typecheck:node && yarn run typecheck:web", "start": "electron-vite preview", "dev": "electron-vite dev", - "build": "npm run typecheck && electron-vite build", + "build": "yarn run typecheck && electron-vite build", "postinstall": "electron-builder install-app-deps && node ./scripts/postinstall.cjs", - "build:unpack": "npm run build && electron-builder --dir", + "build:unpack": "yarn run build && electron-builder --dir", "build:win": "electron-vite build && electron-builder --win", "build:mac": "electron-vite build && electron-builder --mac", "build:linux": "electron-vite build && electron-builder --linux", diff --git a/src/renderer/src/pages/downloads/download-group.tsx b/src/renderer/src/pages/downloads/download-group.tsx index 7adec38b..bee6646b 100644 --- a/src/renderer/src/pages/downloads/download-group.tsx +++ b/src/renderer/src/pages/downloads/download-group.tsx @@ -305,9 +305,11 @@ function HeroDownloadView({ )} )} - - - + {(!lastPacket?.isCheckingFiles || currentProgress > 0) && ( + + + + )}
navigate(buildUserGameDetailsPath(game))} title={isTooltipHovered ? undefined : game.title} > -
- {isMe && ( -
- -
- )} -
- {game.hasManuallyUpdatedPlaytime ? ( - - ) : ( - - )} - - {formatPlayTime(game.playTimeInSeconds)} - - - {formatPlayTime(game.playTimeInSeconds, true)} - +
+ {isMe && ( +
+
+ )} +
+ {game.hasManuallyUpdatedPlaytime ? ( + + ) : ( + + )} + + {formatPlayTime(game.playTimeInSeconds)} + + + {formatPlayTime(game.playTimeInSeconds, true)} + +
- {userProfile?.hasActiveSubscription && - game.achievementCount > 0 && ( -
-
-
-
- - - {game.unlockedAchievementCount} /{" "} - {game.achievementCount} - -
- - {game.achievementsPointsEarnedSum > 0 && ( -
- - {formatAchievementPoints( - game.achievementsPointsEarnedSum - )} -
- )} -
- + {userProfile?.hasActiveSubscription && game.achievementCount > 0 && ( +
+
+
+
+ - {formatDownloadProgress( - game.unlockedAchievementCount / game.achievementCount, - 1 - )} + {game.unlockedAchievementCount} / {game.achievementCount}
- + {game.achievementsPointsEarnedSum > 0 && ( +
+ + {formatAchievementPoints( + game.achievementsPointsEarnedSum + )} +
+ )}
- )} -
- {imageError || !game.coverImageUrl ? ( -
- + + {formatDownloadProgress( + game.unlockedAchievementCount / game.achievementCount, + 1 + )} + +
+ +
- ) : ( - {game.title} setImageError(true)} - /> )} +
+ + {imageError || !game.coverImageUrl ? ( +
+ +
+ ) : ( + {game.title} setImageError(true)} + /> + )}