Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| eebd764a18 | |||
| 3945685554 |
@@ -76,7 +76,7 @@
|
|||||||
onclick={() => selectAccount(option)}
|
onclick={() => selectAccount(option)}
|
||||||
disabled={loading}
|
disabled={loading}
|
||||||
class="card2 bg-alt flex w-full items-center p-3 text-left">
|
class="card2 bg-alt flex w-full items-center p-3 text-left">
|
||||||
<Profile pubkey={option.pubkey} />
|
<Profile inert pubkey={option.pubkey} />
|
||||||
</Button>
|
</Button>
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+4
-4
@@ -18,7 +18,7 @@ import {
|
|||||||
now,
|
now,
|
||||||
on,
|
on,
|
||||||
sortBy,
|
sortBy,
|
||||||
WEEK,
|
MONTH,
|
||||||
YEAR,
|
YEAR,
|
||||||
} from "@welshman/lib"
|
} from "@welshman/lib"
|
||||||
import {
|
import {
|
||||||
@@ -122,7 +122,7 @@ export const makeFeed = ({
|
|||||||
const controller = new AbortController()
|
const controller = new AbortController()
|
||||||
const events = writable<TrustedEvent[]>([])
|
const events = writable<TrustedEvent[]>([])
|
||||||
|
|
||||||
let interval = int(WEEK)
|
let interval = int(MONTH)
|
||||||
let buffer = sortEventsDesc(getEventsForUrl(url, filters))
|
let buffer = sortEventsDesc(getEventsForUrl(url, filters))
|
||||||
let backwardWindow = [at - interval, at]
|
let backwardWindow = [at - interval, at]
|
||||||
let forwardWindow = [at, at + interval]
|
let forwardWindow = [at, at + interval]
|
||||||
@@ -213,7 +213,7 @@ export const makeFeed = ({
|
|||||||
if (events.length === 0) {
|
if (events.length === 0) {
|
||||||
interval = Math.round(interval * 1.1)
|
interval = Math.round(interval * 1.1)
|
||||||
} else {
|
} else {
|
||||||
interval = int(WEEK)
|
interval = int(MONTH)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -280,7 +280,7 @@ export const makeCalendarFeed = ({
|
|||||||
element: HTMLElement
|
element: HTMLElement
|
||||||
onExhausted?: () => void
|
onExhausted?: () => void
|
||||||
}) => {
|
}) => {
|
||||||
const interval = int(5, WEEK)
|
const interval = int(5, MONTH)
|
||||||
const controller = new AbortController()
|
const controller = new AbortController()
|
||||||
|
|
||||||
let exhaustedScrollers = 0
|
let exhaustedScrollers = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user