From bf06cfe2e1d81ac59e2e2709dd060a52beb9a667 Mon Sep 17 00:00:00 2001 From: thislight Date: Fri, 27 Sep 2024 18:06:44 +0800 Subject: [PATCH 1/2] Home: fix could not jump to sign in page --- src/timelines/Home.tsx | 72 ++++++++++++++++++++++-------------------- 1 file changed, 38 insertions(+), 34 deletions(-) diff --git a/src/timelines/Home.tsx b/src/timelines/Home.tsx index b83de4d..6371250 100644 --- a/src/timelines/Home.tsx +++ b/src/timelines/Home.tsx @@ -11,7 +11,7 @@ import { Suspense, Match, Switch as JsSwitch, - ErrorBoundary + ErrorBoundary, } from "solid-js"; import { useDocumentTitle } from "../utils"; import { type mastodon } from "masto"; @@ -126,9 +126,11 @@ const TimelinePanel: Component<{ }; return ( - { - return

Oops: {String(err)}

- }}> + { + return

Oops: {String(err)}

; + }} + > { } > -
-
-
- + +
+
+
+ +
-
-
-
- +
+
+ +
-
-
-
- +
+
+ +
+
-
-
+ From 11c31f7f4275fa6c10ade4b6867c61442bc0e9da Mon Sep 17 00:00:00 2001 From: thislight Date: Fri, 27 Sep 2024 18:07:10 +0800 Subject: [PATCH 2/2] timelines: minor clean up --- src/masto/timelines.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/masto/timelines.ts b/src/masto/timelines.ts index ce73490..2e49145 100644 --- a/src/masto/timelines.ts +++ b/src/masto/timelines.ts @@ -38,7 +38,6 @@ export function useTimeline( async ([tl], info) => { let tlChanged = false; if (otl !== tl) { - console.debug("timeline reset"); npager = opager = undefined; otl = tl; tlChanged = true;