From 0b738820122ad859182e4403af29ae4dacb06084 Mon Sep 17 00:00:00 2001 From: Alexander Maslov <30986874+steam3d@users.noreply.github.com> Date: Wed, 23 Apr 2025 17:21:49 +0300 Subject: Simplify the typing of the plugin URL for users (#769) * Simplify the typing of the plugin URL for the user. Make the http/https prefix optional. * Fixed the formatting using prettier --write --- frontend/src/components/settings/pages/developer/index.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'frontend/src/components/settings/pages') diff --git a/frontend/src/components/settings/pages/developer/index.tsx b/frontend/src/components/settings/pages/developer/index.tsx index 099f2610..05989806 100644 --- a/frontend/src/components/settings/pages/developer/index.tsx +++ b/frontend/src/components/settings/pages/developer/index.tsx @@ -72,7 +72,16 @@ export default function DeveloperSettings() { } icon={} > - installFromURL(pluginURL)}> + { + if (/^https?:\/\//.test(pluginURL)) { + installFromURL(pluginURL); + } else { + installFromURL('https://' + pluginURL); + } + }} + > {t('SettingsDeveloperIndex.third_party_plugins.button_install')} -- cgit v1.2.3 From cbea1518ed1e88fde34e40a16a0e9c20e954a9f5 Mon Sep 17 00:00:00 2001 From: ynhhoJ <22500212+ynhhoJ@users.noreply.github.com> Date: Sun, 29 Jun 2025 21:37:47 +0300 Subject: Removed `FocusRing` from Decky Changelog Modal and use `Focusable` instead which fixes: #685 (#779) * fix(Updater): Remove `FocusRing` component and use `Focusable` instead * feat(Markdown): Add Link `class` to a tag for a mentain a Steam UI colors palette --- .../components/settings/pages/general/Updater.tsx | 48 ++++++++++++++-------- 1 file changed, 31 insertions(+), 17 deletions(-) (limited to 'frontend/src/components/settings/pages') diff --git a/frontend/src/components/settings/pages/general/Updater.tsx b/frontend/src/components/settings/pages/general/Updater.tsx index 59756a57..3cd58ab6 100644 --- a/frontend/src/components/settings/pages/general/Updater.tsx +++ b/frontend/src/components/settings/pages/general/Updater.tsx @@ -1,14 +1,4 @@ -import { - Carousel, - DialogButton, - Field, - FocusRing, - Focusable, - ProgressBarWithInfo, - Spinner, - findSP, - showModal, -} from '@decky/ui'; +import { Carousel, DialogButton, Field, Focusable, ProgressBarWithInfo, Spinner, findSP, showModal } from '@decky/ui'; import { Suspense, lazy, useCallback, useEffect, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { FaExclamation } from 'react-icons/fa'; @@ -23,9 +13,31 @@ const MarkdownRenderer = lazy(() => import('../../../Markdown')); function PatchNotesModal({ versionInfo, closeModal }: { versionInfo: VerInfo | null; closeModal?: () => {} }) { const SP = findSP(); const { t } = useTranslation(); + return ( - - + <> + + + (
@@ -57,11 +71,11 @@ function PatchNotesModal({ versionInfo, closeModal }: { versionInfo: VerInfo | n nItemMarginX={0} initialColumn={0} autoFocus={true} - fnGetColumnWidth={() => SP.innerWidth} + fnGetColumnWidth={() => SP.innerWidth - SP.innerWidth * (10 / 100)} name={t('Updater.decky_updates') as string} /> - - + + ); } -- cgit v1.2.3