Merge pull request #133 from cheeaun/main

Update from main
This commit is contained in:
Chee Aun 2023-05-14 11:55:03 +08:00 committed by GitHub
commit f5955ef258
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 2 deletions

View file

@ -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)

View file

@ -87,6 +87,7 @@ function List(props) {
return (
<>
<Timeline
key={id}
title={list.title}
id="list"
emptyText="Nothing yet."

View file

@ -253,7 +253,10 @@ function Notifications() {
onClick={() => {
announcementsListRef.current?.children[
index
].scrollIntoView({ behavior: 'smooth' });
].scrollIntoView({
behavior: 'smooth',
block: 'nearest',
});
}}
>
{index + 1}

View file

@ -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();