From 232fadd796087bbcbc4dd080cf12b42bf53b71ce Mon Sep 17 00:00:00 2001 From: AAGaming Date: Fri, 5 Jun 2026 22:29:11 -0400 Subject: fixes for june 2026 beta errorboundary (#916) Co-authored-by: Beebles <102569435+beebls@users.noreply.github.com> --- frontend/src/components/DeckyErrorBoundary.tsx | 1 - .../components/settings/pages/general/Updater.tsx | 35 +++++++++++++++++----- .../components/settings/pages/testing/index.tsx | 5 +++- frontend/src/errorboundary-hook.tsx | 2 +- 4 files changed, 32 insertions(+), 11 deletions(-) (limited to 'frontend/src') diff --git a/frontend/src/components/DeckyErrorBoundary.tsx b/frontend/src/components/DeckyErrorBoundary.tsx index 29638521..0846d765 100644 --- a/frontend/src/components/DeckyErrorBoundary.tsx +++ b/frontend/src/components/DeckyErrorBoundary.tsx @@ -101,7 +101,6 @@ const DeckyErrorBoundary: FunctionComponent = ({ error, color: #93929e; font-size: 15px; margin: 10px 0px 40px ${vars.rootMarginLeft}; - width: calc(100vw - ${vars.scrollBarwidth} - ${vars.rootMarginLeft}); overflow: visible; } .${classes.root} button, diff --git a/frontend/src/components/settings/pages/general/Updater.tsx b/frontend/src/components/settings/pages/general/Updater.tsx index 3cd58ab6..37aceb72 100644 --- a/frontend/src/components/settings/pages/general/Updater.tsx +++ b/frontend/src/components/settings/pages/general/Updater.tsx @@ -1,4 +1,14 @@ -import { Carousel, DialogButton, Field, Focusable, ProgressBarWithInfo, Spinner, findSP, showModal } from '@decky/ui'; +import { + Carousel, + DialogButton, + Field, + Focusable, + ProgressBarWithInfo, + Spinner, + findSP, + gamepadDialogClasses, + showModal, +} from '@decky/ui'; import { Suspense, lazy, useCallback, useEffect, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { FaExclamation } from 'react-icons/fa'; @@ -153,13 +163,22 @@ export default function UpdaterSettings() { : t('Updater.updates.install_button')} ) : ( - +
+ + +
)} {versionInfo?.remote && versionInfo?.remote?.tag_name != versionInfo?.current && ( diff --git a/frontend/src/components/settings/pages/testing/index.tsx b/frontend/src/components/settings/pages/testing/index.tsx index 0f8b5ebe..7e657db1 100644 --- a/frontend/src/components/settings/pages/testing/index.tsx +++ b/frontend/src/components/settings/pages/testing/index.tsx @@ -84,7 +84,10 @@ export default function TestingVersionList() { - {version.name} {'#' + version.id} + {version.name}{' '} + + {'#' + version.id} + } > diff --git a/frontend/src/errorboundary-hook.tsx b/frontend/src/errorboundary-hook.tsx index 2c69a267..70aa2188 100644 --- a/frontend/src/errorboundary-hook.tsx +++ b/frontend/src/errorboundary-hook.tsx @@ -24,7 +24,7 @@ class ErrorBoundaryHook extends Logger { window.__ERRORBOUNDARY_HOOK_INSTANCE = this; // valve writes only the sanest of code - const exp = /^\(\)=>\(.\|\|.\(new .\),.\)$/; + const exp = /^\(\)=>\(.\|\|(?:.\(|\(.=)new .\),.\)$/; const initErrorReportingStore = findModuleExport( (e) => typeof e == 'function' && e?.toString && exp.test(e.toString()), ); -- cgit v1.2.3