Make reaction icons buttons

This commit is contained in:
Jonathan Staab 2023-03-06 15:50:47 -06:00
parent c60f7bf5fa
commit 2ecfd56a14
2 changed files with 18 additions and 26 deletions

View File

@ -4,16 +4,6 @@
- [ ] Fix iOS/safari/firefox
- [ ] Show more link on long notes (rather than just an ellipsis)
# Image uploads
- [ ] Add LN invoices
- [ ] Build UI
- Put sql stuff in a library, use it in dufflepud and image service
- [ ] Post announcement on SN, TG
- [ ] Contact other client authors, self-hostable, or just use my instance
- https://github.com/ElementsProject/lightning-charge
- https://github.com/nostr-protocol/nips/pull/250
# Coracle website
- [ ] Simple intro to coracle
@ -29,7 +19,7 @@
- Add suggested relays based on follows or topics
- Recommendations
- Indexer/multiplexer
- relay.coracle.social
- relay.coracle.social for people nip-05 verified via coracle
- Improve overall design
- Stripped down easy version of coracle
- Extract library?
@ -44,6 +34,11 @@
# More
- [ ] Image Uploads
- [ ] Add LN invoices
- [ ] Contact other client authors, self-hostable, or just use my instance
- https://github.com/ElementsProject/lightning-charge
- https://github.com/nostr-protocol/nips/pull/250
- [ ] Onboarding
- [ ] Auto-follow hodlbod
- [ ] Add a friendly tour

View File

@ -392,26 +392,23 @@
</div>
<div class="flex justify-between text-light">
<div class="flex">
<div class="w-16" on:click|stopPropagation={startReply}>
<button class="fa fa-reply cursor-pointer" />
<button class="w-16" on:click|stopPropagation={startReply}>
<i class="fa fa-reply cursor-pointer" />
{$repliesCount}
</div>
<div class="w-16" class:text-accent={like}
</button>
<button class="w-16" class:text-accent={like}
on:click|stopPropagation={() => like ? deleteReaction(like) : react("+")}>
<button class={cx('fa fa-heart cursor-pointer', {'fa-beat fa-beat-custom': like})} />
<i class={cx('fa fa-heart cursor-pointer', {'fa-beat fa-beat-custom': like})} />
{$likesCount}
</div>
<div class="w-20" class:text-accent={zapped} on:click|stopPropagation={startZap}>
<button
class={cx("fa fa-bolt cursor-pointer", {
'pointer-events-none opacity-50': !canZap,
})} />
</button>
<button class="w-20" class:text-accent={zapped} on:click|stopPropagation={startZap}>
<i class={cx("fa fa-bolt cursor-pointer", {'pointer-events-none opacity-50': !canZap})} />
{formatSats($zapsTotal)}
</div>
<div class="w-16" on:click|stopPropagation={() => react("-")}>
<button class="fa fa-flag cursor-pointer" />
</button>
<button class="w-16" on:click|stopPropagation={() => react("-")}>
<i class="fa fa-flag cursor-pointer" />
{$flagsCount}
</div>
</button>
</div>
<div
class="cursor-pointer flex gap-1 items-center"