From a4efa21f4fb835060fd1ed65fac17ac4f9385ed2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Thu, 19 Feb 2026 10:20:55 +0100 Subject: [PATCH] nicolium: am stupid MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- packages/pl-fe/src/components/list.tsx | 2 +- packages/pl-fe/src/components/scroll-top-button.tsx | 2 +- packages/pl-fe/src/components/search-input.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/pl-fe/src/components/list.tsx b/packages/pl-fe/src/components/list.tsx index 278320edd..788798bfe 100644 --- a/packages/pl-fe/src/components/list.tsx +++ b/packages/pl-fe/src/components/list.tsx @@ -85,7 +85,7 @@ const ListItem: React.FC = ({ {children} - + ) : null} diff --git a/packages/pl-fe/src/components/scroll-top-button.tsx b/packages/pl-fe/src/components/scroll-top-button.tsx index 4b836a665..d4df7f3ec 100644 --- a/packages/pl-fe/src/components/scroll-top-button.tsx +++ b/packages/pl-fe/src/components/scroll-top-button.tsx @@ -92,7 +92,7 @@ const ScrollTopButton: React.FC = ({ aria-hidden={!visible} > diff --git a/packages/pl-fe/src/components/search-input.tsx b/packages/pl-fe/src/components/search-input.tsx index f43a57592..7deef416f 100644 --- a/packages/pl-fe/src/components/search-input.tsx +++ b/packages/pl-fe/src/components/search-input.tsx @@ -33,7 +33,7 @@ const SearchInput = React.memo(() => { const handleSubmit = () => { setValue(''); - const guessedType = /^(?:\/statuses\/|\/notice\/|\/objects\/|\/@[\w.-]+\/\d+)/.test(value) + const guessedType = /(?:\/statuses\/|\/notice\/|\/objects\/|\/@[\w.-]+\/\d+)/.test(value) ? 'statuses' : 'accounts'; navigate({ to: '/search', search: { q: value, type: guessedType } });