mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 13:56:16 +00:00
fix: adjust padding for completed downloads and improve conditional rendering in download actions
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
}
|
||||
|
||||
&--completed {
|
||||
padding-top: 0;
|
||||
padding-top: calc(globals.$spacing-unit * 3);
|
||||
}
|
||||
|
||||
&__header {
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user