Compare commits

...

2 Commits

Author SHA1 Message Date
Jon Staab eebd764a18 Speed up feed loading 2026-06-15 13:12:46 -07:00
userAdityaa 3945685554 fix: make account selector inert during email login (#304)
Co-authored-by: userAdityaa <aditya.chaudhary1558@gmail.com>
Co-committed-by: userAdityaa <aditya.chaudhary1558@gmail.com>
2026-06-15 18:26:41 +00:00
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -76,7 +76,7 @@
onclick={() => selectAccount(option)}
disabled={loading}
class="card2 bg-alt flex w-full items-center p-3 text-left">
<Profile pubkey={option.pubkey} />
<Profile inert pubkey={option.pubkey} />
</Button>
{/each}
</div>
+4 -4
View File
@@ -18,7 +18,7 @@ import {
now,
on,
sortBy,
WEEK,
MONTH,
YEAR,
} from "@welshman/lib"
import {
@@ -122,7 +122,7 @@ export const makeFeed = ({
const controller = new AbortController()
const events = writable<TrustedEvent[]>([])
let interval = int(WEEK)
let interval = int(MONTH)
let buffer = sortEventsDesc(getEventsForUrl(url, filters))
let backwardWindow = [at - interval, at]
let forwardWindow = [at, at + interval]
@@ -213,7 +213,7 @@ export const makeFeed = ({
if (events.length === 0) {
interval = Math.round(interval * 1.1)
} else {
interval = int(WEEK)
interval = int(MONTH)
}
}
@@ -280,7 +280,7 @@ export const makeCalendarFeed = ({
element: HTMLElement
onExhausted?: () => void
}) => {
const interval = int(5, WEEK)
const interval = int(5, MONTH)
const controller = new AbortController()
let exhaustedScrollers = 0