fix: better mobile usage

This commit is contained in:
Julien Calixte
2026-02-15 19:42:42 +01:00
parent ff8795581e
commit 8e754021bd
4 changed files with 33 additions and 12 deletions

View File

@@ -2,6 +2,7 @@ import { ComputedRef, onUnmounted, Ref, toValue } from "vue"
import { isExternalLink } from "@/utils/link"
import { useRouteQueryStackedNotes } from "@/hooks/useRouteQueryStackedNotes.hook"
import { parseAtUri } from "@/modules/atproto/parseAtUri"
export const useATProtoLinks = (
className: ComputedRef<string> | string,
@@ -27,8 +28,9 @@ export const useATProtoLinks = (
window.open(atUri, "_blank")
return
}
const { rkey } = parseAtUri(atUri)
addStackedNote(toValue(currentAtUri) ?? "", atUri)
addStackedNote(toValue(currentAtUri) ?? "", atUri, rkey)
}
const LINK_SELECTOR = `.${toValue(className)} a`