From 9bb66e57ae6820a03964a9b9e0fe06b65bb5d091 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Fri, 12 May 2023 00:05:22 +0800 Subject: [PATCH 1/4] Show the error too This is getting annoying --- src/utils/store-utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/store-utils.js b/src/utils/store-utils.js index 7b1deef5..059727e1 100644 --- a/src/utils/store-utils.js +++ b/src/utils/store-utils.js @@ -44,7 +44,7 @@ export function getCurrentInstance() { return (currentInstance = instances[instance]); } catch (e) { console.error(e); - alert('Failed to load instance configuration. Please try again.'); + alert(`Failed to load instance configuration. Please try again.\n\n${e}`); // Temporary fix for corrupted data store.local.del('instances'); location.reload(); From 2b5eb87ec48f2fc7d1f4350bea818b1499b34f67 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Fri, 12 May 2023 11:57:10 +0800 Subject: [PATCH 2/4] Fix double scrolling when clicking on announcement index buttons --- src/pages/notifications.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pages/notifications.jsx b/src/pages/notifications.jsx index 61675ec7..6ece5c3c 100644 --- a/src/pages/notifications.jsx +++ b/src/pages/notifications.jsx @@ -253,7 +253,10 @@ function Notifications() { onClick={() => { announcementsListRef.current?.children[ index - ].scrollIntoView({ behavior: 'smooth' }); + ].scrollIntoView({ + behavior: 'smooth', + block: 'nearest', + }); }} > {index + 1} From 7fba180de8eb47b960e32484182f52f4fa8b8992 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sat, 13 May 2023 20:20:47 +0800 Subject: [PATCH 3/4] Possible fix for jumpy popover bug --- src/app.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app.css b/src/app.css index 753688e9..ff573875 100644 --- a/src/app.css +++ b/src/app.css @@ -1328,6 +1328,10 @@ body:has(.media-modal-container + .status-deck) .media-post-link { -webkit-touch-callout: none; -webkit-user-drag: none; } +body > .szh-menu-container { + position: fixed !important; + z-index: 10; +} .szh-menu-container:has(.szh-menu--state-open) { inset: 0; inset: env(safe-area-inset-top) env(safe-area-inset-right) From 46c7ee5de17b27f8d45f564e5368fdd827030d1f Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sat, 13 May 2023 21:34:42 +0800 Subject: [PATCH 4/4] Fix list not re-rendering when list ID changes --- src/pages/list.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages/list.jsx b/src/pages/list.jsx index 719f9a75..ad2e54ce 100644 --- a/src/pages/list.jsx +++ b/src/pages/list.jsx @@ -87,6 +87,7 @@ function List(props) { return ( <>