Fix person popover on mobile

This commit is contained in:
Jonathan Staab 2023-03-11 13:51:58 -06:00
parent 88d93137e2
commit 2807629891
3 changed files with 11 additions and 7 deletions

View File

@ -1,6 +1,5 @@
# 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
- [ ] Show loading/success on zap invoice screen
- [ ] Fix iOS/safari/firefox

View File

@ -21,12 +21,17 @@
$: {
if (input) {
listener = listenForFile(input, async inputFile => {
const opts = filter(identity, {maxWidth, maxHeight})
if (inputFile) {
const opts = filter(identity, {maxWidth, maxHeight})
file = blobToFile(await stripExifData(inputFile, opts))
quote = await postJson(user.dufflepud("/upload/quote"), {
uploads: [{size: file.size}],
})
file = blobToFile(await stripExifData(inputFile, opts))
quote = await postJson(user.dufflepud("/upload/quote"), {
uploads: [{size: file.size}],
})
} else {
file = null
quote = null
}
})
}
}

View File

@ -348,7 +348,7 @@
<Anchor
type="unstyled"
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>
{#if $person.verified_as}
<i class="fa fa-circle-check text-sm text-accent" />