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) 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 ( <> { announcementsListRef.current?.children[ index - ].scrollIntoView({ behavior: 'smooth' }); + ].scrollIntoView({ + behavior: 'smooth', + block: 'nearest', + }); }} > {index + 1} 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();