From 9791c311f1c86b31a51a5adfbba820a01c4de2cf Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Wed, 18 Sep 2024 08:16:52 -0300 Subject: [PATCH 1/3] chore: update bug issue template --- .github/ISSUE_TEMPLATE/bug_report.yml | 11 ++--------- build/installer.nsh | 1 + src/main/services/hydra-api.ts | 5 ++++- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 9b4b0250..0ae5b577 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -33,18 +33,11 @@ body: attributes: label: Additional information and data description: | - If possible, add screenshots and upload your logs file here. + Add screenshots and upload your logs file here. Logs location on Windows: "%appdata%/hydra" Logs location on Linux: "~/.config/hydra/" validations: - required: false - - type: textarea - id: screenshots - attributes: - label: Screenshots - description: If possible, add screenshots to help explain your problem. - validations: - required: false + required: true - type: input id: OS attributes: diff --git a/build/installer.nsh b/build/installer.nsh index 89693a5c..9ae2d42b 100644 --- a/build/installer.nsh +++ b/build/installer.nsh @@ -2,5 +2,6 @@ ${ifNot} ${isUpdated} RMDir /r "$APPDATA\${APP_PACKAGE_NAME}" RMDir /r "$APPDATA\hydra" + RMDir /r "$LOCALAPPDATA\hydralauncher-updater" ${endIf} !macroend diff --git a/src/main/services/hydra-api.ts b/src/main/services/hydra-api.ts index 769447a6..ac3d153a 100644 --- a/src/main/services/hydra-api.ts +++ b/src/main/services/hydra-api.ts @@ -51,7 +51,10 @@ export class HydraApi { expirationTimestamp: tokenExpirationTimestamp, }; - logger.log("Sign in received", this.userAuth); + logger.log( + "Sign in received. Token expiration timestamp:", + tokenExpirationTimestamp + ); await userAuthRepository.upsert( { From e526c0f650a7e699f3cb1244f30098bcd3dd5b93 Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Thu, 19 Sep 2024 15:38:20 -0300 Subject: [PATCH 2/3] feat: adjust align on wider images --- .../pages/game-details/gallery-slider/gallery-slider.css.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/renderer/src/pages/game-details/gallery-slider/gallery-slider.css.ts b/src/renderer/src/pages/game-details/gallery-slider/gallery-slider.css.ts index 5f8afcec..d4f8084a 100644 --- a/src/renderer/src/pages/game-details/gallery-slider/gallery-slider.css.ts +++ b/src/renderer/src/pages/game-details/gallery-slider/gallery-slider.css.ts @@ -19,6 +19,7 @@ export const gallerySliderMedia = style({ flexGrow: "0", transition: "translate 0.3s ease-in-out", borderRadius: "4px", + alignSelf: "center", }); export const gallerySliderAnimationContainer = style({ @@ -60,7 +61,6 @@ export const mediaPreviewButton = recipe({ base: { cursor: "pointer", width: "20%", - height: "20%", display: "block", flexShrink: "0", flexGrow: "0", @@ -84,7 +84,6 @@ export const mediaPreviewButton = recipe({ export const mediaPreview = style({ width: "100%", - height: "100%", display: "flex", }); From e7b4f8e1c8d485b48d98a0563ec7c06ffed5a3c7 Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Thu, 19 Sep 2024 15:38:33 -0300 Subject: [PATCH 3/3] feat: add lazy loading --- .../src/pages/game-details/gallery-slider/gallery-slider.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/renderer/src/pages/game-details/gallery-slider/gallery-slider.tsx b/src/renderer/src/pages/game-details/gallery-slider/gallery-slider.tsx index 47d177ac..40bf050a 100644 --- a/src/renderer/src/pages/game-details/gallery-slider/gallery-slider.tsx +++ b/src/renderer/src/pages/game-details/gallery-slider/gallery-slider.tsx @@ -128,6 +128,7 @@ export function GallerySlider() { src={image.path_full} style={{ translate: `${-100 * mediaIndex}%` }} alt={t("screenshot", { number: i + 1 })} + loading="lazy" /> ))}