From 34e6947a6a0a4f57b0a28ad5d83ce9ec630b9ebc Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Tue, 4 Jun 2024 00:00:38 -0300 Subject: [PATCH 1/2] feat: allow change install directory --- electron-builder.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/electron-builder.yml b/electron-builder.yml index 3b35fd18..31ac3158 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -25,6 +25,7 @@ nsis: uninstallDisplayName: ${productName} createDesktopShortcut: always oneClick: false + allowToChangeInstallationDirectory: true mac: entitlementsInherit: build/entitlements.mac.plist extendInfo: From 76fc992d65f0eea727e61f779603dd0d0b23dcb7 Mon Sep 17 00:00:00 2001 From: rickxz Date: Tue, 4 Jun 2024 16:16:21 -0300 Subject: [PATCH 2/2] style(downloads): make game actions buttons the same size in smaller devices and crop repack title --- src/renderer/src/pages/downloads/downloads.css.ts | 9 ++++++++- src/renderer/src/pages/downloads/downloads.tsx | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/pages/downloads/downloads.css.ts b/src/renderer/src/pages/downloads/downloads.css.ts index 913bec47..57958704 100644 --- a/src/renderer/src/pages/downloads/downloads.css.ts +++ b/src/renderer/src/pages/downloads/downloads.css.ts @@ -21,6 +21,11 @@ export const downloadTitle = style({ }, }); +export const repackTitle = style({ + maxHeight: "40px", + overflow: "hidden", +}); + export const downloaderName = style({ color: "#c0c1c7", fontSize: "10px", @@ -112,14 +117,16 @@ export const downloadDetails = style({ export const downloadRightContent = style({ display: "flex", + alignItems: "center", padding: `${SPACING_UNIT * 2}px`, flex: "1", gap: `${SPACING_UNIT}px`, }); export const downloadActions = style({ + height: "fit-content", display: "flex", - alignItems: "center", + alignItems: "stretch", gap: `${SPACING_UNIT}px`, }); diff --git a/src/renderer/src/pages/downloads/downloads.tsx b/src/renderer/src/pages/downloads/downloads.tsx index e3e221e1..1999caf6 100644 --- a/src/renderer/src/pages/downloads/downloads.tsx +++ b/src/renderer/src/pages/downloads/downloads.tsx @@ -101,7 +101,7 @@ export function Downloads() { if (game.progress === 1) { return ( <> -

{game.repack?.title}

+

{game.repack?.title}

{t("completed")}

);