mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-20 20:16:43 +00:00
Fix person popover on mobile
This commit is contained in:
parent
88d93137e2
commit
2807629891
@ -1,6 +1,5 @@
|
|||||||
# Current
|
# Current
|
||||||
|
|
||||||
- [ ] Add warning for petnames not synced (or maybe check that in connect?)
|
|
||||||
- [ ] Add cryptic symbol somewhere showing how many hours I've put in vs sats received with a link to a dev fund page somewhere
|
- [ ] Add cryptic symbol somewhere showing how many hours I've put in vs sats received with a link to a dev fund page somewhere
|
||||||
- [ ] Show loading/success on zap invoice screen
|
- [ ] Show loading/success on zap invoice screen
|
||||||
- [ ] Fix iOS/safari/firefox
|
- [ ] Fix iOS/safari/firefox
|
||||||
|
@ -21,12 +21,17 @@
|
|||||||
$: {
|
$: {
|
||||||
if (input) {
|
if (input) {
|
||||||
listener = listenForFile(input, async inputFile => {
|
listener = listenForFile(input, async inputFile => {
|
||||||
|
if (inputFile) {
|
||||||
const opts = filter(identity, {maxWidth, maxHeight})
|
const opts = filter(identity, {maxWidth, maxHeight})
|
||||||
|
|
||||||
file = blobToFile(await stripExifData(inputFile, opts))
|
file = blobToFile(await stripExifData(inputFile, opts))
|
||||||
quote = await postJson(user.dufflepud("/upload/quote"), {
|
quote = await postJson(user.dufflepud("/upload/quote"), {
|
||||||
uploads: [{size: file.size}],
|
uploads: [{size: file.size}],
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
file = null
|
||||||
|
quote = null
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -348,7 +348,7 @@
|
|||||||
<Anchor
|
<Anchor
|
||||||
type="unstyled"
|
type="unstyled"
|
||||||
class="flex items-center gap-2 text-lg font-bold"
|
class="flex items-center gap-2 text-lg font-bold"
|
||||||
href={!isMobile && routes.person($person.pubkey)}>
|
href={isMobile ? null : routes.person($person.pubkey)}>
|
||||||
<span>{displayPerson($person)}</span>
|
<span>{displayPerson($person)}</span>
|
||||||
{#if $person.verified_as}
|
{#if $person.verified_as}
|
||||||
<i class="fa fa-circle-check text-sm text-accent" />
|
<i class="fa fa-circle-check text-sm text-accent" />
|
||||||
|
Loading…
Reference in New Issue
Block a user