From e24e77ed0b98d63d592cede2cbcd5dd53740181d Mon Sep 17 00:00:00 2001 From: Jonathan Staab Date: Wed, 8 Mar 2023 15:50:05 -0600 Subject: [PATCH] Make "show new notes" button fixed position --- CHANGELOG.md | 5 +++++ ROADMAP.md | 2 -- src/routes/PersonDetail.svelte | 12 ++++++------ src/views/SideNav.svelte | 6 +++++- src/views/feed/Feed.svelte | 19 +++++++++++-------- src/views/notes/Note.svelte | 7 +++++-- tailwind.config.cjs | 1 + 7 files changed, 33 insertions(+), 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a3a85199..e7c8bcb4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.2.17 + +- [x] Make "show new notes" button fixed position +- [x] Gray out buttons that don't work when logged in with pubkey + ## 0.2.16 - [x] Add search by nip05 (@fiatjaf) diff --git a/ROADMAP.md b/ROADMAP.md index b7492505..bc06117f 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -1,9 +1,7 @@ # Current -- [ ] Gray out messages tab when using pubkey login - [ ] Collapse relaycard and relaycardsimple? - [ ] Create my own version of nostr.how and extension explanation -- [ ] Make new notes thing on feeds fixed position - [ ] Review sampleRelays, seems like we shouldn't be shuffling - [ ] Go over onboarding process, suggest some good relays for newcomers diff --git a/src/routes/PersonDetail.svelte b/src/routes/PersonDetail.svelte index c6627b97..b225910a 100644 --- a/src/routes/PersonDetail.svelte +++ b/src/routes/PersonDetail.svelte @@ -46,13 +46,13 @@ if (showActions) { actions.push({onClick: share, label: "Share", icon: "share-nodes"}) - if (following) { - actions.push({onClick: unfollow, label: "Unfollow", icon: "user-minus"}) - } else if (user.getPubkey() !== pubkey) { - actions.push({onClick: follow, label: "Follow", icon: "user-plus"}) - } - if ($canPublish) { + if (following) { + actions.push({onClick: unfollow, label: "Unfollow", icon: "user-minus"}) + } else if (user.getPubkey() !== pubkey) { + actions.push({onClick: follow, label: "Follow", icon: "user-plus"}) + } + actions.push({ onClick: () => navigate(`/messages/${npub}`), label: "Message", diff --git a/src/views/SideNav.svelte b/src/views/SideNav.svelte index a3ec21c4..77083c3a 100644 --- a/src/views/SideNav.svelte +++ b/src/views/SideNav.svelte @@ -73,7 +73,11 @@ {/if} -
  • +
  • Chat {#if $newChatMessages} diff --git a/src/views/feed/Feed.svelte b/src/views/feed/Feed.svelte index df9ac11a..35254598 100644 --- a/src/views/feed/Feed.svelte +++ b/src/views/feed/Feed.svelte @@ -1,7 +1,7 @@