fix: adjust padding for completed downloads and improve conditional rendering in download actions

This commit is contained in:
ctrlcat0x
2025-11-15 13:47:50 +05:30
parent cc38be4383
commit 5bffaf17fa
2 changed files with 5 additions and 4 deletions

View File

@@ -12,7 +12,7 @@
}
&--completed {
padding-top: 0;
padding-top: calc(globals.$spacing-unit * 3);
}
&__header {

View File

@@ -777,7 +777,7 @@ export function DownloadGroup({
)}
<div className="download-group__simple-actions">
{game.download?.progress === 1 ? (
{game.download?.progress === 1 && (
<Button
theme="primary"
onClick={() => openGameInstaller(game.shop, game.objectId)}
@@ -786,7 +786,8 @@ export function DownloadGroup({
>
<DownloadIcon size={16} />
</Button>
) : isQueuedGroup ? (
)}
{isQueuedGroup && game.download?.progress !== 1 && (
<Button
theme="primary"
onClick={() => resumeDownload(game.shop, game.objectId)}
@@ -794,7 +795,7 @@ export function DownloadGroup({
>
<PlayIcon size={16} />
</Button>
) : null}
)}
<DropdownMenu align="end" items={getGameActions(game)}>
<Button
theme="outline"