mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-19 11:43:35 +00:00
Fix chat word wrap and person buttons
This commit is contained in:
parent
803f4d5c64
commit
91df2e2247
@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
# More
|
# More
|
||||||
|
|
||||||
|
- [ ] Apply person popover to mentions in notes as well
|
||||||
- [ ] Invite link, nprofile + path that prompts someone to sign in or create an account and auto-follow the inviter
|
- [ ] Invite link, nprofile + path that prompts someone to sign in or create an account and auto-follow the inviter
|
||||||
- [ ] Cache follower numbers to avoid re-fetching so much
|
- [ ] Cache follower numbers to avoid re-fetching so much
|
||||||
- [ ] Allow the user to disable likes/zaps
|
- [ ] Allow the user to disable likes/zaps
|
||||||
|
@ -98,10 +98,10 @@
|
|||||||
'mr-12': message.person.pubkey !== user.getPubkey(),
|
'mr-12': message.person.pubkey !== user.getPubkey(),
|
||||||
})}>
|
})}>
|
||||||
<div class={cx('rounded-2xl py-2 px-4 max-w-xl inline-block', {
|
<div class={cx('rounded-2xl py-2 px-4 max-w-xl inline-block', {
|
||||||
'bg-light text-black rounded-br-none text-end': message.person.pubkey === user.getPubkey(),
|
'bg-white text-black rounded-br-none text-end': message.person.pubkey === user.getPubkey(),
|
||||||
'bg-dark rounded-bl-none': message.person.pubkey !== user.getPubkey(),
|
'bg-dark rounded-bl-none': message.person.pubkey !== user.getPubkey(),
|
||||||
})}>
|
})}>
|
||||||
<div>{@html renderNote(message, {showEntire: true})}</div>
|
<div class="break-words">{@html renderNote(message, {showEntire: true})}</div>
|
||||||
<small
|
<small
|
||||||
class="mt-1"
|
class="mt-1"
|
||||||
class:text-dark={message.person.pubkey === user.getPubkey()}
|
class:text-dark={message.person.pubkey === user.getPubkey()}
|
||||||
|
@ -53,12 +53,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($canPublish) {
|
if ($canPublish) {
|
||||||
actions.push({href: `/messages/${npub}`, label: 'Message', icon: 'envelope'})
|
actions.push({onClick: () => navigate(`/messages/${npub}`), label: 'Message', icon: 'envelope'})
|
||||||
actions.push({onClick: openAdvanced, label: 'Advanced', icon: 'sliders'})
|
actions.push({onClick: openAdvanced, label: 'Advanced', icon: 'sliders'})
|
||||||
}
|
}
|
||||||
|
|
||||||
if (user.getPubkey() === pubkey) {
|
if (user.getPubkey() === pubkey) {
|
||||||
actions.push({href: '/profile', label: 'Edit', icon: 'edit'})
|
actions.push({onClick: () => navigate('/profile'), label: 'Edit', icon: 'edit'})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user