Skip to content

Commit

Permalink
[[ public ]] smol fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
soapdog committed Aug 22, 2022
1 parent 270c638 commit 147b0a1
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions ui/packages/hub/Public.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,11 @@ const PublicView = {

if (vnode.state.loadingPhase == "load") {
vnode.state.loadingPhase = "loading"
console.time("public")
console.time("public timeline")
ssb
.public(opts)
.then(ms => {
console.log("msgs", ms)
console.timeEnd("public")
console.timeEnd("public timeline")
vnode.state.msgs = ms
window.scrollTo(0, 0)
vnode.state.loadingPhase = "loaded"
Expand Down Expand Up @@ -68,7 +67,14 @@ const PublicView = {
)
}

const header = m(".navbar.mb-2.text-base-content", [m(".navbar-start", m("ul.menu.menu-horizontal.bg-secondary.bg-secondary-content", [makeFilterButton("All"), makeFilterButton("Friends"), makeFilterButton("Following")]))])
const header = m(".navbar.mb-2.text-base-content", [
m(".navbar-start",
m("ul.menu.menu-horizontal.bg-secondary.bg-secondary-content", [
makeFilterButton("All"),
makeFilterButton("Friends"),
makeFilterButton("Following")
]))
])

const goNext = () => {
vnode.state.lt.push(vnode.state.msgs[vnode.state.msgs.length - 1].value.timestamp)
Expand Down

0 comments on commit 147b0a1

Please sign in to comment.